Pages
API Documentation
On this page

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

List of all members, including inherited members

Public Functions

Signals

Static Public Members

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] 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.

QString KDEDModule::moduleName() const

The name of the module used to register to D-Bus.

See also setModuleName()

[signal] void KDEDModule::moduleRegistered(const QDBusObjectPath &path)

Emitted after the module is registered successfully with D-Bus under the specified D-Bus object path.

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.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.