KDEDModule Class
The base class for KDED modules. More...
Header: | #include <KDEDModule> |
CMake: | find_package(KF6 REQUIRED COMPONENTS DBusAddons) target_link_libraries(mytarget PRIVATE KF6::DBusAddons) |
Inherits: | QObject |
Public Functions
KDEDModule(QObject *parent = nullptr) | |
QString | moduleName() const |
void | setModuleName(const QString &name) |
Signals
(since 4.2) void | moduleRegistered(const QDBusObjectPath &path) |
void | windowRegistered(qlonglong windowId) |
void | windowUnregistered(qlonglong windowId) |
Static Public Members
(since 5.7) QString | moduleForMessage(const QDBusMessage &message) |
Detailed Description
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.
Member Function Documentation
[explicit]
KDEDModule::KDEDModule(QObject *parent = nullptr)
Creates a new kded module with the given parent.
[static, since 5.7]
QString KDEDModule::moduleForMessage(const QDBusMessage &message)
Returns the module being called by this D-Bus message.
Useful for autoloading modules in kded and similar daemons.
This function was introduced in 5.7.
QString KDEDModule::moduleName() const
The name of the module used to register to D-Bus.
See also setModuleName().
[signal, since 4.2]
void KDEDModule::moduleRegistered(const QDBusObjectPath &path)
Emitted after the module is registered successfully with D-Bus under the specified D-Bus object path.
This function was introduced in 4.2.
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.
See also moduleName().
[signal]
void KDEDModule::windowRegistered(qlonglong windowId)
Emitted when a mainwindow with the specified windowId registers itself.
[signal]
void KDEDModule::windowUnregistered(qlonglong windowId)
Emitted when a mainwindow with the specified windowId unregisters itself.