00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef DBUS_H
00022 #define DBUS_H
00023
00024 #include "qimsysglobal.h"
00025
00026 #define DATASTREAM_IN(T, ...) \
00027 QIMSYS_EXPORT inline QDataStream &operator>>(QDataStream &s, T) \
00028 { \
00029 __VA_ARGS__ \
00030 return s; \
00031 }
00032
00033 #define DATASTREAM_OUT(T, ...) \
00034 QIMSYS_EXPORT inline QDataStream &operator<<(QDataStream &s, T) \
00035 { \
00036 __VA_ARGS__; \
00037 return s; \
00038 }
00039
00040 #ifndef QIMSYS_NO_DBUS
00041 #include <QDBusArgument>
00042
00043 #define DBUSARGUMENT_IN(T, ...) \
00044 QIMSYS_EXPORT inline const QDBusArgument &operator>>(const QDBusArgument &arg, T) \
00045 { \
00046 __VA_ARGS__ \
00047 return arg; \
00048 }
00049
00050 #define DBUSARGUMENT_OUT(T, ...) \
00051 QIMSYS_EXPORT inline QDBusArgument &operator<<(QDBusArgument &arg, T) \
00052 { \
00053 __VA_ARGS__ \
00054 return arg; \
00055 }
00056 #endif // QIMSYS_NO_DBUS
00057
00058 #endif//DBUS_H