historyprovider.h
/* This file is part of the KDE project
Copyright (C) 2001 Carsten Pfeiffer <pfeiffer@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KHISTORYPROVIDER_H
#define KHISTORYPROVIDER_H
#include <qdict.h>
#include <qobject.h>
#include <kdelibs_export.h>
namespace KParts {
class KPARTS_EXPORT HistoryProvider : public QObject
{
Q_OBJECT
public:
static HistoryProvider * self();
HistoryProvider( QObject *parent = 0L, const char *name = 0 );
virtual ~HistoryProvider();
virtual bool contains( const QString& item ) const;
virtual void insert( const QString& item );
virtual void remove( const QString& item );
virtual void clear();
signals:
void cleared();
void updated( const QStringList& items );
void inserted( const QString& item );
private:
static HistoryProvider *s_self;
protected:
virtual void virtual_hook( int id, void* data );
private:
class HistoryProviderPrivate;
HistoryProviderPrivate *d;
};
}
#endif // KHISTORYPROVIDER_H
KParts::HistoryProvider
Basic class to manage a history of "items".
Definition: historyprovider.h:41

KDE Home | KDE Accessibility Home | Description of Access Keys