diff options
author | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-02-11 11:21:01 +0200 |
---|---|---|
committer | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-02-11 11:21:01 +0200 |
commit | 346a7524047a1aa1ec64810abb8b0243ae90c3bb (patch) | |
tree | ff122182776b0a08bea4e5074d39ed3cd9a76416 /libdbus-qeventloop/dbusconnectioneventloop.h | |
parent | 7fc9e4c25b87945487723e594bb5320bd253526f (diff) |
astyled the code
Diffstat (limited to 'libdbus-qeventloop/dbusconnectioneventloop.h')
-rw-r--r-- | libdbus-qeventloop/dbusconnectioneventloop.h | 52 |
1 files changed, 25 insertions, 27 deletions
diff --git a/libdbus-qeventloop/dbusconnectioneventloop.h b/libdbus-qeventloop/dbusconnectioneventloop.h index 993c5c1..b36bf9d 100644 --- a/libdbus-qeventloop/dbusconnectioneventloop.h +++ b/libdbus-qeventloop/dbusconnectioneventloop.h @@ -11,31 +11,29 @@ //#define _DISPLAY_DEBUG_ #ifdef _DISPLAY_DEBUG_ - #include <stdlib.h> - - #define MYDEBUG() MyDebug deb(__FUNCTION__) - #define MYDEBUGC(...) qDebug(__VA_ARGS__) - - class MyDebug - { - public: - MyDebug(const char* func) - { - funcName = strdup(func); - qDebug("--> Entering: %s() ...", funcName); - } - ~MyDebug() - { - qDebug("<-- Leaving: %s() ...", funcName); - free(funcName); - } - - private: - char* funcName; - }; +#include <stdlib.h> + +#define MYDEBUG() MyDebug deb(__FUNCTION__) +#define MYDEBUGC(...) qDebug(__VA_ARGS__) + +class MyDebug +{ +public: + MyDebug(const char* func) { + funcName = strdup(func); + qDebug("--> Entering: %s() ...", funcName); + } + ~MyDebug() { + qDebug("<-- Leaving: %s() ...", funcName); + free(funcName); + } + +private: + char* funcName; +}; #else - #define MYDEBUG() - #define MYDEBUGC(...) +#define MYDEBUG() +#define MYDEBUGC(...) #endif class QSocketNotifier; @@ -48,9 +46,9 @@ class QTimerEvent; */ class DBUSConnectionEventLoop : public QObject { - Q_OBJECT + Q_OBJECT private: - Q_DISABLE_COPY(DBUSConnectionEventLoop) + Q_DISABLE_COPY(DBUSConnectionEventLoop) public: DBUSConnectionEventLoop(); @@ -61,7 +59,7 @@ public: * Add new dbus connection into handler. * \return true if everything went well. */ - bool addConnection(DBusConnection* conn); + bool addConnection(DBusConnection* conn); /** * Helper class for dbus watcher |