Qt Components Hildon  0.20
QML components for Maemo5 with Hildon styling.
 All Classes Functions Properties Groups Pages
Properties | List of all members
DBusMessage Class Reference

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
serviceName: "org.hildon.dbus.DBusExample"
path: "/org/hildon/dbus"
interfaceName: "org.hildon.dbus.DBusExample"
methodName: "setWindowTitle"
arguments: [ qsTr("New window title") ]
onStatusChanged: {
switch (status) {
case DBusMessage.Ready:
console.log(replyString);
break;
case DBusMessage.Error:
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

The message reply.

See Also
replyString
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.