Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
tdeparts
tdeparts
tdeparts
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 <tdelibs_export.h>
27
28
namespace
KParts {
29
41
class
TDEPARTS_EXPORT
HistoryProvider
:
public
TQObject
42
{
43
TQ_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::HistoryProvider
Basic class to manage a history of "items".
Definition:
historyprovider.h:42
KParts::HistoryProvider::updated
void updated(const TQStringList &items)
This signal is never emitted from this class, it is only meant as an interface for subclasses.
KParts::HistoryProvider::inserted
void inserted(const TQString &item)
Emitted after the item has been inserted.
KParts::HistoryProvider::cleared
void cleared()
Emitted after the history has been cleared.
tdeparts
Skip menu "tdeparts"
Main Page
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
tdeparts
Skip menu "tdeparts"
arts
dcop
dnssd
interfaces
kspeech
interface
library
tdetexteditor
kate
kded
kdoctools
kimgio
kjs
libtdemid
libtdescreensaver
tdeabc
tdecmshell
tdecore
tdefx
tdehtml
tdeinit
tdeio
bookmarks
httpfilter
kpasswdserver
kssl
tdefile
tdeio
tdeioexec
tdeioslave
http
tdemdi
tdemdi
tdenewstuff
tdeparts
tdeprint
tderandr
tderesources
tdespell2
tdesu
tdeui
tdeunittest
tdeutils
tdewallet