ksycocadict.h
/* This file is part of the KDE libraries
* Copyright (C) 1999 Waldo Bastian <bastian@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 version 2 as published by the Free Software Foundation;
*
* 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 __ksycocadict_h__
#define __ksycocadict_h__
#include <qstring.h>
#include <qvaluelist.h>
#include <qdatastream.h>
#include "kdelibs_export.h"
class KSycocaEntry;
class KSycocaDictStringList;
class KDECORE_EXPORT KSycocaDict
{
public:
KSycocaDict();
KSycocaDict(QDataStream *str, int offset);
~KSycocaDict();
void add(const QString &key, KSycocaEntry *payload);
void remove(const QString &key);
int find_string(const QString &key );
uint count();
void clear();
void save(QDataStream &str);
protected:
Q_UINT32 hashKey( const QString &);
private:
KSycocaDictStringList *d;
QDataStream *mStr;
Q_INT32 mOffset;
Q_UINT32 mHashTableSize;
QValueList<Q_INT32> mHashList;
};
#endif
KSycocaEntry
Base class for all Sycoca entries.
Definition: ksycocaentry.h:37
KStdAction::clear
KAction * clear(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0)
KStdAccel::key
int key(StdAccel id)
Definition: kstdaccel.cpp:383
KStdAction::save
KAction * save(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0)

KDE Home | KDE Accessibility Home | Description of Access Keys