• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • tdecore
tdesycoca.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 __tdesycoca_h__
20#define __tdesycoca_h__
21
22#include <dcopobject.h>
23#include <tqobject.h>
24#include <tqstringlist.h>
25#include "tdesycocatype.h"
26#include <tdelibs_export.h>
27
28class TQDataStream;
29class KSycocaPrivate;
30class KSycocaFactory;
31class KSycocaFactoryList;
32
33/*
34 * Sycoca file version number.
35 * If the existing file is outdated, it will not get read
36 * but instead we'll ask kded to regenerate a new one...
37*/
38#define TDESYCOCA_VERSION 94
39
44class TDECORE_EXPORT KSycoca : public TQObject, public DCOPObject
45{
46 TQ_OBJECT
47 K_DCOP
48
49protected:
54 KSycoca( bool /* buildDatabase */ );
55
56public:
57
61 KSycoca();
62
66 static KSycoca *self();
67
68 virtual ~KSycoca();
69
70 static int version();
71
76 TQDataStream *findEntry(int offset, KSycocaType &type);
80 TQDataStream *findFactory( KSycocaFactoryId id);
84 TQString kfsstnd_prefixes();
88 TQString language();
89
96 TQ_UINT32 timeStamp();
97
107 TQ_UINT32 updateSignature();
108
113 TQStringList allResourceDirs();
114
118 void addFactory( KSycocaFactory * );
119
124 virtual bool isBuilding() { return false; }
125
129 void disableAutoRebuild();
130
134 static TQString determineRelativePath( const TQString & _fullpath, const char *_resource );
135
141 static bool isChanged(const char *type);
142
146 static void flagError();
147
151 static bool readError();
152
153k_dcop:
157 void notifyDatabaseChanged(const TQStringList &);
158
159signals:
164 void databaseChanged();
165
166protected:
167 bool checkVersion(bool abortOnError=true);
168 bool openDatabase(bool openDummyIfNotFound=true);
169 void closeDatabase();
170 KSycocaFactoryList *m_lstFactories;
171 TQDataStream *m_str;
172 TQByteArray *m_barray;
173 bool bNoDatabase;
174 size_t m_sycoca_size;
175 const char *m_sycoca_mmap;
176 TQ_UINT32 m_timeStamp;
177
178public:
179 static KSycoca *_self; // Internal use only.
180
181protected:
182 virtual void virtual_hook( int id, void* data );
183private:
184 KSycocaPrivate *d;
185};
186
187#endif
DCOPObject
KSycocaFactoryList
This, instead of a typedef, allows to declare "class ..." in header files.
Definition: tdesycocafactory.h:138
KDE::version
unsigned int version()
Returns the encoded number of KDE's version, see the TDE_VERSION macro.
Definition: tdeversion.cpp:22

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
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.