Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
kdecore
kdecore
kdecore
ksycocadict.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 __ksycocadict_h__
20
#define __ksycocadict_h__
21
22
#include <tqstring.h>
23
#include <tqvaluelist.h>
24
#include <tqdatastream.h>
25
#include "kdelibs_export.h"
26
27
class
KSycocaEntry
;
28
class
KSycocaDictStringList;
29
34
class
KDECORE_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:
ksycocaentry.h:38
KStdAction::clear
KAction * clear(const TQObject *recvr, const char *slot, KActionCollection *parent, const char *name=0)
KStdAction::save
KAction * save(const TQObject *recvr, const char *slot, KActionCollection *parent, const char *name=0)
kdecore
Skip menu "kdecore"
Main Page
Modules
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
kdecore
Skip menu "kdecore"
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