42 #ifndef QDBUSMETATYPE_H 43 #define QDBUSMETATYPE_H 45 #include "QtCore/qmetatype.h" 46 #include <QtDBus/qdbusargument.h> 60 typedef void (*DemarshallFunction)(
const QDBusArgument &,
void *);
62 static void registerMarshallOperators(
int typeId, MarshallFunction, DemarshallFunction);
63 static bool marshall(QDBusArgument &,
int id,
const void *
data);
64 static bool demarshall(
const QDBusArgument &,
int id,
void *
data);
66 static int signatureToType(
const char *signature);
67 static const char *typeToSignature(
int type);
85 void (*mf)(
QDBusArgument &,
const T *) = qDBusMarshallHelper<T>;
86 void (*df)(
const QDBusArgument &, T *) = qDBusDemarshallHelper<T>;
88 int id = qRegisterMetaType<T>();
90 reinterpret_cast<QDBusMetaType::MarshallFunction>(mf),
91 reinterpret_cast<QDBusMetaType::DemarshallFunction>(df));
#define QT_END_NAMESPACE
This macro expands to.
The QDBusArgument class is used to marshall and demarshall D-Bus arguments.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static const char * data(const QByteArray &arr)
int qDBusRegisterMetaType()
Registers T with the qdbustypesystem .