KDBusAddons 5.109.0
Signals | Public Member Functions | Static Public Member Functions | List of all members
KDEDModule

The base class for KDED modules. More...

#include <KDEDModule>

Signals

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.
 

Public Member Functions

 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 Public Member Functions

static QString moduleForMessage (const QDBusMessage &message)
 Returns the module being called by this D-Bus message.
 

Detailed Description

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

Constructor & Destructor Documentation

◆ KDEDModule()

KDEDModule::KDEDModule ( QObject *  parent = nullptr)
explicit

Constructor.

Member Function Documentation

◆ moduleDeleted

void KDEDModule::moduleDeleted ( KDEDModule )
signal

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.