The DBusMessage components sends messages via DBus.
More...
Properties |
|
list< variant > | arguments |
| | The DBus arguments to be sent with the message.
|
| enumeration | bus |
| | The bus on which the which the message will be sent.
|
|
string | interfaceName |
| | The DBus interface on which the message will be sent.
|
| string | methodName |
| | The DBus method to be called.
|
|
string | path |
| | The DBus path on which the message will be sent.
|
| variant | reply |
| | The message reply.
|
| string | replyString |
| | The messsage reply, formatted as a string.
|
|
string | serviceName |
| | The DBus service on which the message will be sent.
|
| enumeration | status |
| | The current status of the message.
|
| enumeration | type |
| | The message type.
|
Detailed Description
The DBusMessage components sends messages via DBus.
id: message
onStatusChanged: {
switch (status) {
console.log(replyString);
break;
console.log("Error");
break;
default:
break;
}
}
}
- See Also
- DBusAdaptor
- Examples:
- dbus.qml.
Property Documentation
| enumeration DBusMessage::bus |
|
readwrite |
The bus on which the which the message will be sent.
Possible values are:
| Value | Description |
| DBusAdaptor.SessionBus | Registers the target on the session bus (default). |
| DBusAdaptor.SystemBus | Registers the target on the system bus. |
| string DBusMessage::methodName |
|
readwrite |
The DBus method to be called.
This property is only required if type is MethodCallMessage.
- See Also
- type
| variant DBusMessage::reply |
|
read |
| string DBusMessage::replyString |
|
read |
The messsage reply, formatted as a string.
- See Also
- reply
| DBusMessage::enumeration DBusMessage::status |
|
read |
The current status of the message.
Possible values are:
| Value | Description |
| DBusMessage.Null | No message has been sent (default). |
| DBusMessage.Loading | A message is being sent. |
| DBusMessage.Ready | The message was sent successfully. |
| DBusMessage.Error | An error occured when sending the message. |
| DBusMessage::enumeration DBusMessage::type |
|
readwrite |
The message type.
Possible values are:
| Value | Description |
| DBusMessage.MethodCallMessage | The message is a method call (default). |
| DBusMessage.SignalMessage | The message is a signal. |
| DBusMessage.ReplyMessage | The message is a reply. |
| DBusMessage.ErrorMessage | The message is an error. |