#include <kdedmodule.h>
Inherits TQObject, and DCOPObject.
Public Slots | |
virtual void | idle () |
Signals | |
void | moduleDeleted (KDEDModule *) |
void | windowRegistered (long windowId) |
void | windowUnregistered (long windowId) |
Public Member Functions | |
KDEDModule (const TQCString &name) | |
void | setIdleTimeout (int secs) |
void | resetIdle () |
void | insert (const TQCString &app, const TQCString &key, TDEShared *obj) |
TDEShared * | find (const TQCString &app, const TQCString &key) |
void | remove (const TQCString &app, const TQCString &key) |
void | removeAll (const TQCString &app) |
bool | isWindowRegistered (long windowId) |
Friends | |
class | Kded |
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:
See tdelibs/kded/HOWTO for more detailed documentation.
Definition at line 55 of file kdedmodule.h.
Constructor & Destructor Documentation
◆ KDEDModule()
KDEDModule::KDEDModule | ( | const TQCString & | name | ) |
Create a DCOPObject named name
.
Definition at line 39 of file kdedmodule.cpp.
Member Function Documentation
◆ find()
TDEShared * KDEDModule::find | ( | const TQCString & | app, |
const TQCString & | key | ||
) |
Lookup object indexed with app
and key
.
Definition at line 83 of file kdedmodule.cpp.
◆ idle
|
inlinevirtualslot |
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()
void KDEDModule::insert | ( | const TQCString & | app, |
const TQCString & | key, | ||
TDEShared * | obj | ||
) |
Insert obj
indexed with app
and key
.
The object will be automatically deleted when the application app
unregisters with DCOP.
Any previous object inserted with the same values for app
and key
will be removed.
Definition at line 65 of file kdedmodule.cpp.
◆ isWindowRegistered()
bool KDEDModule::isWindowRegistered | ( | long | windowId | ) |
Returns whether a certain mainwindow has registered itself with KDED.
Definition at line 125 of file kdedmodule.cpp.
◆ moduleDeleted
|
signal |
Emitted when the module is being deleted.
◆ remove()
void KDEDModule::remove | ( | const TQCString & | app, |
const TQCString & | key | ||
) |
remove object indexed with app
and key
.
The object will be deleted when it is no more referenced.
Definition at line 96 of file kdedmodule.cpp.
◆ removeAll()
void KDEDModule::removeAll | ( | const TQCString & | app | ) |
remove all objects indexed with app
.
The objects will be deleted when they are no more referenced.
Definition at line 106 of file kdedmodule.cpp.
◆ resetIdle()
void KDEDModule::resetIdle | ( | ) |
Reset the idle timeout counter.
(re)starts the timeout counter if no objects are being referenced.
Definition at line 58 of file kdedmodule.cpp.
◆ setIdleTimeout()
void KDEDModule::setIdleTimeout | ( | int | secs | ) |
Specifies the idle timeout in seconds.
The default is 0.
This will call the idle slot secs
seconds after the last reference was removed.
Definition at line 53 of file kdedmodule.cpp.
◆ windowRegistered
|
signal |
Emitted when a mainwindow registers itself.
◆ windowUnregistered
|
signal |
Emitted when a mainwindow unregisters itself.
The documentation for this class was generated from the following files: