DBus-1-TQt
1.0
|
#include <tqdbusvariant.h>
Public Member Functions | |
TQT_DBusVariant () | |
TQT_DBusVariant (const TQT_DBusVariant &other) | |
bool | operator== (const TQT_DBusVariant &other) const |
bool | operator!= (const TQT_DBusVariant &other) const |
Public Attributes | |
TQString | signature |
TQT_DBusData | value |
Data type for representing a D-Bus variant.
When D-Bus methods or signal require that a paramater can have any of the D-Bus data types, a D-Bus variant can be used.
Basically a D-Bus variant includes the actual data and a D-Bus data signature to allow a receiver to determine the contents.
Since the TQT_DBusVariant's value member will already be fully de-marshalled, a receiver using this bindings can savely ignore the signature if it doesn't need it for a different purpose (e.g. logging).
However, when creating a TQT_DBusVariant object for sending, make sure the signature member is correctly setup, for example by using the value member's buildDBusSignature() method.
Definition at line 56 of file tqdbusvariant.h.
|
inline |
|
inline |
Copies the given other
variant object.
other | the variant object to copy from |
Definition at line 69 of file tqdbusvariant.h.
References signature, and value.
|
inline |
Checks if the given other
variant is not equal to this one.
other | the variant object to compare with |
Definition at line 98 of file tqdbusvariant.h.
References signature, and value.
|
inline |
Checks if the given other
variant is equal to this one.
other | the variant object to compare with |
Definition at line 83 of file tqdbusvariant.h.
References signature, and value.
TQString TQT_DBusVariant::signature |
The D-Bus data signature of the data contained in value.
Definition at line 111 of file tqdbusvariant.h.
TQT_DBusData TQT_DBusVariant::value |
The D-Bus data type to transport as a variant.
Definition at line 116 of file tqdbusvariant.h.