Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
tdecore
tdecore
tdecore
tdesycocadict.h
1
/* This file is part of the KDE libraries
2
* Copyright (C) 1999 Waldo Bastian <bastian@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 version 2 as published by the Free Software Foundation;
7
*
8
* This library is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
* Library General Public License for more details.
12
*
13
* You should have received a copy of the GNU Library General Public License
14
* along with this library; see the file COPYING.LIB. If not, write to
15
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16
* Boston, MA 02110-1301, USA.
17
**/
18
19
#ifndef __tdesycocadict_h__
20
#define __tdesycocadict_h__
21
22
#include <tqstring.h>
23
#include <tqvaluelist.h>
24
#include <tqdatastream.h>
25
#include "tdelibs_export.h"
26
27
class
KSycocaEntry
;
28
class
KSycocaDictStringList;
29
34
class
TDECORE_EXPORT KSycocaDict
35
{
36
public
:
40
KSycocaDict();
44
KSycocaDict(TQDataStream *str,
int
offset);
45
46
~KSycocaDict();
47
54
void
add(
const
TQString &key,
KSycocaEntry
*payload);
55
61
void
remove(
const
TQString &key);
62
75
int
find_string(
const
TQString &key );
76
82
uint count();
83
89
void
clear
();
90
111
void
save
(TQDataStream &str);
112
113
protected
:
114
TQ_UINT32 hashKey(
const
TQString &);
115
private
:
116
KSycocaDictStringList *d;
117
TQDataStream *mStr;
118
TQ_INT32 mOffset;
119
TQ_UINT32 mHashTableSize;
120
TQValueList<TQ_INT32> mHashList;
121
};
122
123
#endif
KSycocaEntry
Base class for all Sycoca entries.
Definition:
tdesycocaentry.h:38
KStdAction::save
TDEAction * save(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0)
KStdAction::clear
TDEAction * clear(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0)
tdecore
Skip menu "tdecore"
Main Page
Modules
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
tdecore
Skip menu "tdecore"
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