Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
kparts
kparts
kparts
historyprovider.h
1
/* This file is part of the KDE project
2
Copyright (C) 2001 Carsten Pfeiffer <pfeiffer@kde.org>
3
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License as published by the Free Software Foundation; either
7
version 2 of the License, or (at your option) any later version.
8
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Library General Public License for more details.
13
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
Boston, MA 02110-1301, USA.
18
*/
19
20
#ifndef KHISTORYPROVIDER_H
21
#define KHISTORYPROVIDER_H
22
23
#include <tqdict.h>
24
#include <tqobject.h>
25
26
#include <kdelibs_export.h>
27
28
namespace
KParts {
29
41
class
KPARTS_EXPORT
HistoryProvider
:
public
TQObject
42
{
43
Q_OBJECT
44
45
public
:
46
static
HistoryProvider
*
self
();
47
51
HistoryProvider
( TQObject *parent = 0L,
const
char
*name = 0 );
52
56
virtual
~HistoryProvider();
57
61
virtual
bool
contains(
const
TQString& item )
const
;
62
66
virtual
void
insert(
const
TQString& item );
67
71
virtual
void
remove
(
const
TQString& item );
72
76
virtual
void
clear();
77
78
signals:
82
void
cleared();
83
90
void
updated(
const
TQStringList& items );
91
95
void
inserted(
const
TQString& item );
96
97
private
:
98
static
HistoryProvider *s_self;
99
100
protected
:
101
virtual
void
virtual_hook(
int
id
,
void
* data );
102
private
:
103
class
HistoryProviderPrivate;
104
HistoryProviderPrivate *d;
105
};
106
107
}
108
109
#endif // KHISTORYPROVIDER_H
kparts
Skip menu "kparts"
Main Page
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
kparts
Skip menu "kparts"
arts
dcop
dnssd
interfaces
interface
library
kspeech
ktexteditor
kabc
kate
kcmshell
kdecore
kded
kdefx
kdeprint
kdesu
kdeui
kdoctools
khtml
kimgio
kinit
kio
bookmarks
httpfilter
kfile
kio
kioexec
kpasswdserver
kssl
kioslave
http
kjs
kmdi
kmdi
knewstuff
kparts
krandr
kresources
kspell2
kunittest
kutils
kwallet
libkmid
libkscreensaver