26 #include <tqasciidict.h>
27 #include <tqintdict.h>
29 #include <dcopclient.h>
30 #include <dcopobject.h>
32 #include <tdesycoca.h>
33 #include <tdesycocatype.h>
34 #include <kdedmodule.h>
35 #include <klibloader.h>
41 class Kded :
public TQObject,
public DCOPObject,
public DCOPObjectProxy
45 Kded(
bool checkUpdates,
bool new_startup);
48 static Kded *
self() {
return _self;}
52 bool process(
const TQCString &obj,
const TQCString &fun,
53 const TQByteArray &data,
54 TQCString &replyType, TQByteArray &replyData);
60 bool process(
const TQCString &fun,
const TQByteArray &data,
61 TQCString &replyType, TQByteArray &replyData);
63 virtual QCStringList functions();
65 void noDemandLoad(
const TQString &obj);
67 KDEDModule *loadModule(
const TQCString &obj,
bool onDemand);
68 KDEDModule *loadModule(
const KService *service,
bool onDemand);
69 QCStringList loadedModules();
70 bool unloadModule(
const TQCString &obj);
71 bool isWindowRegistered(
long windowId);
72 void registerWindowId(
long windowId);
73 void unregisterWindowId(
long windowId);
74 void recreate(
bool initial);
75 void loadSecondPhase();
96 void updateDirWatch();
101 void updateResourceList();
106 void slotApplicationRemoved(
const TQCString &appId);
118 void dirDeleted(
const TQString& path);
123 void update (
const TQString& dir );
128 void installCrashHandler();
130 void runDelayedCheck();
136 void readDirectory(
const TQString& dir );
139 static void crashHandler(
int);
146 KDirWatch* m_pDirWatch;
157 TQValueList<DCOPClientTransaction *> m_recreateRequests;
161 TQAsciiDict<KDEDModule> m_modules;
162 TQAsciiDict<KLibrary> m_libs;
163 TQAsciiDict<TQObject> m_dontLoad;
164 TQAsciiDict<TQValueList<long> > m_windowIdList;
165 TQIntDict<long> m_globalWindowIdList;
166 TQStringList m_allResourceDirs;
167 bool m_needDelayedCheck;
170 bool newStartup()
const {
return m_newStartup; }
176 class KUpdateD :
public TQObject
184 void runKonfUpdate();
185 void slotNewUpdateFile();
193 KDirWatch* m_pDirWatch;
203 class KHostnameD :
public TQObject
207 KHostnameD(
int pollInterval);
211 void checkHostname();
218 TQCString m_hostname;
The base class for KDED modules.