![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtDBus More...
#include <qdbusmetatype.h>
Public Types | |
typedef void(* | MarshallFunction) (QDBusArgument &, const void *) |
typedef void(* | DemarshallFunction) (const QDBusArgument &, void *) |
Static Public Member Functions | |
static void | registerMarshallOperators (QMetaType typeId, MarshallFunction, DemarshallFunction) |
static bool | marshall (QDBusArgument &, QMetaType id, const void *data) |
static bool | demarshall (const QDBusArgument &, QMetaType id, void *data) |
static void | registerCustomType (QMetaType type, const QByteArray &signature) |
static QMetaType | signatureToMetaType (const char *signature) |
static const char * | typeToSignature (QMetaType type) |
\inmodule QtDBus
Meta-type registration system for the Qt D-Bus 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 Qt D-Bus, those types must be registered.
See \l {qdbustypesystem.html}{Qt D-Bus Type System} for more information on the type system and how to register additional types.
Definition at line 18 of file qdbusmetatype.h.
typedef void(* QDBusMetaType::DemarshallFunction) (const QDBusArgument &, void *) |
Definition at line 22 of file qdbusmetatype.h.
typedef void(* QDBusMetaType::MarshallFunction) (QDBusArgument &, const void *) |
Definition at line 21 of file qdbusmetatype.h.
|
static |
Executes the demarshalling of type metaType (whose data will be placed in data) from the D-Bus marshalling argument arg. Returns true
if the demarshalling succeeded, or false if an error occurred.
Definition at line 245 of file qdbusmetatype.cpp.
|
static |
Executes the marshalling of type metaType (whose data is contained in data) to the D-Bus marshalling argument arg. Returns true
if the marshalling succeeded, or false if an error occurred.
Definition at line 210 of file qdbusmetatype.cpp.
|
static |
Registers the meta type type to be represeneted by the given D-Bus signature.
This is used in qdbuscpp2xml for custom types which aren't known to the C++ type system.
Definition at line 374 of file qdbusmetatype.cpp.
|
static |
Registers the marshalling and demarshalling functions for meta type metaType.
Definition at line 187 of file qdbusmetatype.cpp.
|
static |
Definition at line 292 of file qdbusmetatype.cpp.
|
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 397 of file qdbusmetatype.cpp.