KWin
|
Qml export for providing a wrapper for sending a message over the DBus session bus. More...
#include <dbuscall.h>
Public Slots | |
void | call () |
void | setService (const QString &service) |
void | setPath (const QString &path) |
void | setInterface (const QString &interface) |
void | setMethod (const QString &method) |
void | setArguments (const QVariantList &arguments) |
Signals | |
void | finished (QVariantList returnValue) |
void | failed () |
void | serviceChanged () |
void | pathChanged () |
void | interfaceChanged () |
void | methodChanged () |
void | argumentsChanged () |
Public Member Functions | |
DBusCall (QObject *parent=nullptr) | |
~DBusCall () override | |
const QString & | service () const |
const QString & | path () const |
const QString & | interface () const |
const QString & | method () const |
const QVariantList & | arguments () const |
Properties | |
QString | service |
QString | path |
QString | dbusInterface |
QString | method |
QVariantList | arguments |
Qml export for providing a wrapper for sending a message over the DBus session bus.
Allows to setup the connection arguments just like in QDBusMessage and supports adding arguments to the call. To invoke the message use the slot call.
If the call succeeds the signal finished is emitted, if the call fails the signal failed is emitted.
Note: the DBusCall always uses the session bus and performs an async call.
Example on how to use in Qml:
Example with arguments:
Example with a callback:
Definition at line 64 of file dbuscall.h.
|
explicit |
Definition at line 19 of file dbuscall.cpp.
|
override |
Definition at line 24 of file dbuscall.cpp.
const QVariantList & KWin::DBusCall::arguments | ( | ) | const |
|
signal |
|
slot |
Definition at line 28 of file dbuscall.cpp.
|
signal |
|
signal |
const QString & KWin::DBusCall::interface | ( | ) | const |
|
signal |
const QString & KWin::DBusCall::method | ( | ) | const |
|
signal |
const QString & KWin::DBusCall::path | ( | ) | const |
|
signal |
const QString & KWin::DBusCall::service | ( | ) | const |
|
signal |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
readwrite |
Definition at line 71 of file dbuscall.h.
|
readwrite |
Definition at line 69 of file dbuscall.h.
|
readwrite |
Definition at line 70 of file dbuscall.h.
|
readwrite |
Definition at line 68 of file dbuscall.h.
|
readwrite |
Definition at line 67 of file dbuscall.h.