Qt 4.8
Classes | Functions
qdbusmetatype.cpp File Reference
#include "qdbusmetatype.h"
#include <string.h>
#include "qdbus_symbols_p.h"
#include <qbytearray.h>
#include <qglobal.h>
#include <qreadwritelock.h>
#include <qvector.h>
#include "qdbusmessage.h"
#include "qdbusunixfiledescriptor.h"
#include "qdbusutil_p.h"
#include "qdbusmetatype_p.h"
#include "qdbusargument_p.h"

Go to the source code of this file.

Classes

class  QDBusCustomTypeInfo
 

Functions

template<typename T >
static void registerHelper (T *=0)
 

Function Documentation

◆ registerHelper()

template<typename T >
static void registerHelper ( T *  = 0)
inlinestatic

Definition at line 90 of file qdbusmetatype.cpp.

91 {
92  void (*mf)(QDBusArgument &, const T *) = qDBusMarshallHelper<T>;
93  void (*df)(const QDBusArgument &, T *) = qDBusDemarshallHelper<T>;
95  reinterpret_cast<QDBusMetaType::MarshallFunction>(mf),
96  reinterpret_cast<QDBusMetaType::DemarshallFunction>(df));
97 }
The QDBusArgument class is used to marshall and demarshall D-Bus arguments.
Definition: qdbusargument.h:69
static void registerMarshallOperators(int typeId, MarshallFunction, DemarshallFunction)
Registers the marshalling and demarshalling functions for meta type id.