KDEDModule Class Reference
#include <kdedmodule.h>
Inheritance diagram for KDEDModule:

Detailed Description
The base class for KDED modules.In KDE 2 and KDE 3, KDED modules are realized as shared libraries that are loaded on-demand into kded at runtime.
To write a config module, you have to create a library that contains at least one factory function like this:
extern "C" { KDE_EXPORT KDEDModule *create_xyz(QCString *name) { return new XYZ(name); } }
See kdelibs/kded/HOWTO for more detailed documentation.
- Author:
- Waldo Bastian <bastian@kde.org>
Definition at line 55 of file kdedmodule.h.
Public Slots | |
virtual void | idle () |
Signals | |
void | moduleDeleted (KDEDModule *) |
void | windowRegistered (long windowId) |
void | windowUnregistered (long windowId) |
Public Member Functions | |
KDEDModule (const QCString &name) | |
virtual | ~KDEDModule () |
void | setIdleTimeout (int secs) |
void | resetIdle () |
void | insert (const QCString &app, const QCString &key, KShared *obj) |
KShared * | find (const QCString &app, const QCString &key) |
void | remove (const QCString &app, const QCString &key) |
void | removeAll (const QCString &app) |
bool | isWindowRegistered (long windowId) |
Friends | |
class | Kded |
Constructor & Destructor Documentation
|
Create a DCOPObject named
Definition at line 39 of file kdedmodule.cpp. |
Member Function Documentation
|
Lookup object indexed with
Definition at line 83 of file kdedmodule.cpp. |
|
Called whenever the last referenced object gets dereferenced. See also setIdleTimeout() You may delete the module from this slot. Definition at line 126 of file kdedmodule.h. |
|
Insert
The object will be automatically deleted when the application
Any previous object inserted with the same values for Definition at line 65 of file kdedmodule.cpp. |
|
Returns whether a certain mainwindow has registered itself with KDED.
Definition at line 125 of file kdedmodule.cpp. |
|
Emitted when the module is being deleted.
|
|
remove object indexed with The object will be deleted when it is no more referenced. Definition at line 96 of file kdedmodule.cpp. |
|
remove all objects indexed with The objects will be deleted when they are no more referenced. Definition at line 106 of file kdedmodule.cpp. |
|
Reset the idle timeout counter. (re)starts the timeout counter if no objects are being referenced. Definition at line 58 of file kdedmodule.cpp. |
|
Specifies the idle timeout in seconds. The default is 0.
This will call the idle slot Definition at line 53 of file kdedmodule.cpp. |
|
Emitted when a mainwindow registers itself.
|
|
Emitted when a mainwindow unregisters itself.
|
The documentation for this class was generated from the following files: