Solid
ifaces/device.cpp
28void Solid::Ifaces::Device::registerAction(const QString &actionName, QObject *dest, const char *requestSlot, const char *doneSlot) const
32 .connect(QString(), deviceDBusPath(), QStringLiteral("org.kde.Solid.Device"), actionName + QStringLiteral("Requested"), dest, requestSlot);
39void Solid::Ifaces::Device::broadcastActionDone(const QString &actionName, int error, const QString &errorString) const
42 QDBusMessage signal = QDBusMessage::createSignal(deviceDBusPath(), QStringLiteral("org.kde.Solid.Device"), actionName + QStringLiteral("Done"));
52 QDBusMessage signal = QDBusMessage::createSignal(deviceDBusPath(), QStringLiteral("org.kde.Solid.Device"), actionName + QStringLiteral("Requested"));
virtual QString displayName() const
Retrieves the display name to use for this device.
Definition ifaces/device.cpp:63
void broadcastActionRequested(const QString &actionName) const
Allows to broadcast that an action just got requested on a device to all the corresponding devices in...
Definition ifaces/device.cpp:49
void broadcastActionDone(const QString &actionName, int error=Solid::NoError, const QString &errorString=QString()) const
Allows to broadcast that an action just completed in a device to all the corresponding devices in oth...
Definition ifaces/device.cpp:39
virtual QString parentUdi() const
Retrieves the Universal Device Identifier (UDI) of the Device's parent.
Definition ifaces/device.cpp:23
void registerAction(const QString &actionName, QObject *dest, const char *requestSlot, const char *doneSlot) const
Register an action for the given device.
Definition ifaces/device.cpp:28
QByteArray toPercentEncoding(const QByteArray &exclude, const QByteArray &include, char percent) const const
bool connect(const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot)
bool send(const QDBusMessage &message) const const
QDBusConnection sessionBus()
QDBusMessage createSignal(const QString &path, const QString &interface, const QString &name)
QString fromLatin1(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 1 2024 18:52:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 1 2024 18:52:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.