DBusAny

Structure allowing typeless parameters

Constructors

this
this(int type, string signature, bool explicit)

Manually creates a DBusAny object using a type, signature and implicit specifier.

this
this(T value)

Automatically creates a DBusAny object with fitting parameters from a D type or Variant!T. Pass a Variant!T to make this an explicit variant.

Members

Functions

get
T get()

Get the value stored in the DBusAny object.

to
T to()

Converts a basic type, a tuple or an array to the D type with type checking. Tuples can get converted to an array too.

toAA
DBusAny[DBusAny] toAA()

If the value is an array of DictionaryEntries this will return a HashMap

toString
string toString()
typeSig
string typeSig()

Get the DBus type signature of the value stored in the DBusAny object.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

explicitVariant
bool explicitVariant;

If true, this value will get serialized as variant value, otherwise it is serialized like it wasn't in a DBusAny wrapper. Same functionality as Variant!T but with dynamic types if true.

signature
string signature;

Child signature for Arrays & Tuples

type
int type;

DBus type of the value (never 'v'), see typeSig!T

Suggestion Box / Bug Report