Qt 4.8
|
Meta-type registration system for the QtDBus module. More...
#include <qdbusmetatype.h>
Public Types | |
typedef void(* | DemarshallFunction) (const QDBusArgument &, void *) |
typedef void(* | MarshallFunction) (QDBusArgument &, const void *) |
Static Public Functions | |
static bool | demarshall (const QDBusArgument &, int id, void *data) |
Executes the demarshalling of type id (whose data will be placed in data) from the D-Bus marshalling argument arg. More... | |
static bool | marshall (QDBusArgument &, int id, const void *data) |
Executes the marshalling of type id (whose data is contained in data) to the D-Bus marshalling argument arg. More... | |
static void | registerMarshallOperators (int typeId, MarshallFunction, DemarshallFunction) |
Registers the marshalling and demarshalling functions for meta type id. More... | |
static int | signatureToType (const char *signature) |
static const char * | typeToSignature (int type) |
Returns the D-Bus signature equivalent to the supplied meta type id type. More... | |
Meta-type registration system for the QtDBus module.
The QDBusMetaType class allows you to register class types for marshalling and demarshalling over D-Bus. D-Bus supports a very limited set of primitive types, but allows one to extend the type system by creating compound types, such as arrays (lists) and structs. In order to use them with QtDBus, those types must be registered.
See QtDBus type system for more information on the type system and how to register additional types.
Definition at line 56 of file qdbusmetatype.h.
QDBusMetaType::DemarshallFunction |
Definition at line 60 of file qdbusmetatype.h.
QDBusMetaType::MarshallFunction |
Definition at line 59 of file qdbusmetatype.h.
|
static |
Executes the demarshalling of type id (whose data will be placed in data) from the D-Bus marshalling argument arg.
Definition at line 287 of file qdbusmetatype.cpp.
Referenced by copyArgument(), QDBusConnectionPrivate::deliverCall(), QDBusAbstractInterfacePrivate::property(), qDBusReplyFill(), and writeProperty().
|
static |
Executes the marshalling of type id (whose data is contained in data) to the D-Bus marshalling argument arg.
Definition at line 255 of file qdbusmetatype.cpp.
Referenced by QDBusMarshaller::appendRegisteredType(), and QDBusArgumentPrivate::createSignature().
|
static |
Registers the marshalling and demarshalling functions for meta type id.
Definition at line 230 of file qdbusmetatype.cpp.
|
static |
Returns the Qt meta type id for the given D-Bus signature for exactly one full type, given by signature.
Note: this function only handles the basic D-Bus types.
Definition at line 323 of file qdbusmetatype.cpp.
Referenced by QDBusArgumentPrivate::createSignature(), QDBusMetaObjectGenerator::findType(), and generateInterfaceXml().
|
static |
Returns the D-Bus signature equivalent to the supplied meta type id type.
More types can be registered with the qDBusRegisterMetaType() function.
Definition at line 411 of file qdbusmetatype.cpp.
Referenced by QDBusMarshaller::append(), QDBusMarshaller::appendVariantInternal(), QDBusMarshaller::beginArray(), QDBusMarshaller::beginMap(), copyArgument(), findSlot(), QDBusMetaObjectGenerator::findType(), generateInterfaceXml(), QDBusMessagePrivate::makeLocal(), QDBusConnectionPrivate::prepareHook(), QDBusAbstractInterfacePrivate::property(), qDBusParametersForMethod(), qDBusReplyFill(), readAllProperties(), and QDBusPendingCallPrivate::setMetaTypes().