diff options
author | Martin Wolf <ext-martin.2.wolf@nokia.com> | 2010-02-08 18:39:09 +0200 |
---|---|---|
committer | Martin Wolf <ext-martin.2.wolf@nokia.com> | 2010-02-08 18:39:09 +0200 |
commit | ae63c568711c128c64b1a94ef50e0af2ca91086b (patch) | |
tree | f41e7c18f33a67d0b98c428def2ce01ada3baa2d /libdbus-qeventloop/dbusconnectioneventloop.h | |
parent | aa6f0a82078f1d47f3b6dda4bb2f7dea7ce5a003 (diff) |
Updated comments, fixed unit tests
Diffstat (limited to 'libdbus-qeventloop/dbusconnectioneventloop.h')
-rw-r--r-- | libdbus-qeventloop/dbusconnectioneventloop.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libdbus-qeventloop/dbusconnectioneventloop.h b/libdbus-qeventloop/dbusconnectioneventloop.h index 2d617b3..993c5c1 100644 --- a/libdbus-qeventloop/dbusconnectioneventloop.h +++ b/libdbus-qeventloop/dbusconnectioneventloop.h @@ -41,6 +41,11 @@ class QSocketNotifier; class QTimerEvent; +/** +* This class is handling dbus notifications with QT events. QEventLoop must +* be handled in order to handle dbus events. +* Usage: DBUSConnectionEventLoop myLoop; myLoop.addConnection(bus); +*/ class DBUSConnectionEventLoop : public QObject { Q_OBJECT @@ -52,8 +57,15 @@ public: virtual ~DBUSConnectionEventLoop(); public: + /** + * Add new dbus connection into handler. + * \return true if everything went well. + */ bool addConnection(DBusConnection* conn); + /** + * Helper class for dbus watcher + */ class Watcher { public: @@ -68,8 +80,19 @@ public: typedef QHash<int, DBusTimeout*> Timeouts; typedef QList<DBusConnection*> Connections; + /** + * DBusWatcher objects + */ Watchers watchers; + + /** + * DBusTimeout objects + */ Timeouts timeouts; + + /** + * DBusConnection objects + */ Connections connections; public slots: |