40 #define XQSERVICE_DEBUG_PRINT(args...) qDebug(args); |
40 #define XQSERVICE_DEBUG_PRINT(args...) qDebug(args); |
41 #define XQSERVICE_WARNING_PRINT(args...) qWarning(args); |
41 #define XQSERVICE_WARNING_PRINT(args...) qWarning(args); |
42 #define XQSERVICE_CRITICAL_PRINT(args...) qCritical(args); |
42 #define XQSERVICE_CRITICAL_PRINT(args...) qCritical(args); |
43 #define XQSERVICE_FATAL_PRINT(args...) qFatal(args); |
43 #define XQSERVICE_FATAL_PRINT(args...) qFatal(args); |
44 #define XQSERVICEMESSAGEHANDLER XqServiceMessageHandler::xqServiceMessageHandler |
44 #define XQSERVICEMESSAGEHANDLER XqServiceMessageHandler::xqServiceMessageHandler |
|
45 #define XQSERVICE_CONNECT(a, b, c, d) if (!QObject::connect((a), (b), (c), (d))) {qCritical("%s: connection failed", __PRETTY_FUNCTION__);}else{qDebug("%s: connection OK", __PRETTY_FUNCTION__);} |
45 #else //XQSERVICE_DEBUG not defined |
46 #else //XQSERVICE_DEBUG not defined |
46 #define XQSERVICE_DEBUG_PRINT(args...) |
47 #define XQSERVICE_DEBUG_PRINT(args...) |
47 #define XQSERVICE_WARNING_PRINT(args...) |
48 #define XQSERVICE_WARNING_PRINT(args...) |
48 #define XQSERVICE_CRITICAL_PRINT(args...) |
49 #define XQSERVICE_CRITICAL_PRINT(args...) |
49 #define XQSERVICE_FATAL_PRINT(args...) |
50 #define XQSERVICE_FATAL_PRINT(args...) |
|
51 #define XQSERVICE_CONNECT(a, b, c, d) QObject::connect((a), (b), (c), (d)); |
50 #define XQSERVICEMESSAGEHANDLER 0 |
52 #define XQSERVICEMESSAGEHANDLER 0 |
51 #endif //XQSERVICE_DEBUG |
53 #endif //XQSERVICE_DEBUG |
52 |
54 |
53 #ifdef XQSERVICE_DEBUG |
55 #ifdef XQSERVICE_DEBUG |
54 |
56 |