19#ifndef __tdesycoca_h__
20#define __tdesycoca_h__
22#include <dcopobject.h>
24#include <tqstringlist.h>
25#include "tdesycocatype.h"
26#include <tdelibs_export.h>
38#define TDESYCOCA_VERSION 94
44class TDECORE_EXPORT KSycoca :
public TQObject,
public DCOPObject
66 static KSycoca *self();
76 TQDataStream *findEntry(
int offset, KSycocaType &type);
80 TQDataStream *findFactory( KSycocaFactoryId
id);
84 TQString kfsstnd_prefixes();
96 TQ_UINT32 timeStamp();
107 TQ_UINT32 updateSignature();
113 TQStringList allResourceDirs();
118 void addFactory( KSycocaFactory * );
124 virtual bool isBuilding() {
return false; }
129 void disableAutoRebuild();
134 static TQString determineRelativePath(
const TQString & _fullpath,
const char *_resource );
141 static bool isChanged(
const char *type);
146 static void flagError();
151 static bool readError();
157 void notifyDatabaseChanged(
const TQStringList &);
164 void databaseChanged();
167 bool checkVersion(
bool abortOnError=
true);
168 bool openDatabase(
bool openDummyIfNotFound=
true);
169 void closeDatabase();
172 TQByteArray *m_barray;
174 size_t m_sycoca_size;
175 const char *m_sycoca_mmap;
176 TQ_UINT32 m_timeStamp;
179 static KSycoca *_self;
182 virtual void virtual_hook(
int id,
void* data );
This, instead of a typedef, allows to declare "class ..." in header files.
unsigned int version()
Returns the encoded number of KDE's version, see the TDE_VERSION macro.