Message

Represents a message in the dbus system. Use the constructor to

Constructors

this
deprecated this(string dest, string path, string iface, string method)
Undocumented in source.
this
this(BusName dest, ObjectPath path, InterfaceName iface, string method)

Prepares a new method call to an "instance" "object" "interface" "method".

this
this(DBusMessage* m)

Wraps an existing low level message object.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Aliases

to
alias to = read
Undocumented in source.

Functions

build
void build(TS args)

Creates a new iterator and puts in the arguments for calling a method.

createReturn
Message createReturn()
Undocumented in source. Be warned that the author may not have intended to support it.
iface
InterfaceName iface()
Undocumented in source. Be warned that the author may not have intended to support it.
isCall
bool isCall()
Undocumented in source. Be warned that the author may not have intended to support it.
member
string member()
Undocumented in source. Be warned that the author may not have intended to support it.
path
ObjectPath path()
Undocumented in source. Be warned that the author may not have intended to support it.
read
T read()

Reads the first argument of the message. Note that this creates a new iterator every time so calling it multiple times will always read the first argument. This is suitable for single item returns. To read multiple arguments use readTuple.

readTuple
Tup readTuple()
Undocumented in source. Be warned that the author may not have intended to support it.
sender
string sender()
Undocumented in source. Be warned that the author may not have intended to support it.
signature
string signature()
Undocumented in source. Be warned that the author may not have intended to support it.
type
MessageType type()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

msg
DBusMessage* msg;
Undocumented in source.

Examples

import dunit.toolkit;

auto msg = Message(busName("org.example.test"), ObjectPath("/test"), interfaceName("org.example.testing"), "testMethod");
msg.path().assertEqual("/test");

Meta