KDED
kdedmodule.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __KDEDMODULE_H__
00023 #define __KDEDMODULE_H__
00024
00025 #include <qobject.h>
00026 #include <dcopobject.h>
00027 #include <ksharedptr.h>
00028
00029 class KDEDModulePrivate;
00030 class Kded;
00031
00055 class KDE_EXPORT KDEDModule : public QObject, public DCOPObject
00056 {
00057 Q_OBJECT
00058
00059
00060
00061 friend class Kded;
00062 public:
00063
00067 KDEDModule(const QCString &name);
00068
00069 virtual ~KDEDModule();
00070
00077 void setIdleTimeout(int secs);
00078
00084 void resetIdle();
00085
00094 void insert(const QCString &app, const QCString &key, KShared *obj);
00095
00099 KShared *find(const QCString &app, const QCString &key);
00100
00105 void remove(const QCString &app, const QCString &key);
00106
00111 void removeAll(const QCString &app);
00112
00116 bool isWindowRegistered(long windowId);
00117
00118 public slots:
00126 virtual void idle() { };
00127
00128 signals:
00132 void moduleDeleted(KDEDModule *);
00133
00137 void windowRegistered(long windowId);
00138
00142 void windowUnregistered(long windowId);
00143
00144 private:
00145 KDEDModulePrivate *d;
00146 };
00147
00148 #endif