KDECore
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 <kdecore_export.h>
00026
00027 #include <QtCore/QObject>
00028 #include <QtCore/QByteArray>
00029
00030 class KDEDModulePrivate;
00031 class Kded;
00032
00045 class KDECORE_EXPORT KDEDModule: public QObject
00046 {
00047 Q_OBJECT
00048 Q_CLASSINFO("D-Bus Interface", "org.kde.KDEDModule")
00049
00050 friend class Kded;
00051 public:
00052
00056 explicit KDEDModule(QObject* parent = 0);
00057
00058 virtual ~KDEDModule();
00059
00065 void setModuleName( const QString& name );
00066
00067 QString moduleName() const;
00068
00069 #if 0 // does anyone really use this? I found no kdedmodule using it.
00070
00071
00072
00073
00080 void setIdleTimeout(int secs);
00081
00087 void resetIdle();
00088
00089
00098 void insert(const DCOPCString &app, const DCOPCString &key, KShared *obj);
00099
00103 KShared *find(const DCOPCString &app, const DCOPCString &key);
00104
00109 void remove(const DCOPCString &app, const DCOPCString &key);
00110
00115 void removeAll(const DCOPCString &app);
00116 #endif
00117
00118 #if 0 // does anyone use this?
00119
00122 bool isWindowRegistered(long windowId) const;
00123 #endif
00124
00125 #if 0
00126 public Q_SLOTS:
00134 virtual void idle() { }
00135 #endif
00136
00137 Q_SIGNALS:
00141 void moduleDeleted(KDEDModule *);
00142
00146 void windowRegistered(qlonglong windowId);
00147
00151 void windowUnregistered(qlonglong windowId);
00152
00153 private:
00154 KDEDModulePrivate* const d;
00155 };
00156
00157 #endif