The base class for KDED modules.
More...
#include <KDEDModule>
|
void | moduleDeleted (KDEDModule *) |
| Emitted when the module is being deleted.
|
|
void | moduleRegistered (const QDBusObjectPath &path) |
| Emitted after the module is registered successfully with D-Bus.
|
|
void | windowRegistered (qlonglong windowId) |
| Emitted when a mainwindow registers itself.
|
|
void | windowUnregistered (qlonglong windowId) |
| Emitted when a mainwindow unregisters itself.
|
|
|
| KDEDModule (QObject *parent=nullptr) |
| Constructor.
|
|
QString | moduleName () const |
|
void | setModuleName (const QString &name) |
| Sets the name of the module, and uses it to register the module to D-Bus.
|
|
|
static QString | moduleForMessage (const QDBusMessage &message) |
| Returns the module being called by this D-Bus message.
|
|
The base class for KDED modules.
KDED modules are constructed as shared libraries that are loaded on-demand into the kded daemon at runtime.
See https://invent.kde.org/frameworks/kded/-/blob/master/docs/HOWTO for documentation about writing kded modules.
- Author
- Waldo Bastian basti.nosp@m.an@k.nosp@m.de.or.nosp@m.g
◆ KDEDModule()
KDEDModule::KDEDModule |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ moduleDeleted
Emitted when the module is being deleted.
◆ moduleForMessage()
static QString KDEDModule::moduleForMessage |
( |
const QDBusMessage & |
message | ) |
|
|
static |
Returns the module being called by this D-Bus message.
Useful for autoloading modules in kded and similar daemons.
- Since
- 5.7
◆ moduleRegistered
void KDEDModule::moduleRegistered |
( |
const QDBusObjectPath & |
path | ) |
|
|
signal |
Emitted after the module is registered successfully with D-Bus.
- Since
- 4.2
◆ setModuleName()
void KDEDModule::setModuleName |
( |
const QString & |
name | ) |
|
Sets the name of the module, and uses it to register the module to D-Bus.
For modules loaded as plugins by a daemon, this is called automatically by the daemon after loading the module. Module authors should NOT call this.
◆ windowRegistered
void KDEDModule::windowRegistered |
( |
qlonglong |
windowId | ) |
|
|
signal |
Emitted when a mainwindow registers itself.
◆ windowUnregistered
void KDEDModule::windowUnregistered |
( |
qlonglong |
windowId | ) |
|
|
signal |
Emitted when a mainwindow unregisters itself.