summaryrefslogtreecommitdiff
path: root/libdbus-qeventloop
diff options
context:
space:
mode:
authorMartin Wolf <ext-martin.2.wolf@nokia.com>2010-02-08 18:39:09 +0200
committerMartin Wolf <ext-martin.2.wolf@nokia.com>2010-02-08 18:39:09 +0200
commitae63c568711c128c64b1a94ef50e0af2ca91086b (patch)
treef41e7c18f33a67d0b98c428def2ce01ada3baa2d /libdbus-qeventloop
parentaa6f0a82078f1d47f3b6dda4bb2f7dea7ce5a003 (diff)
downloadlibresourceqt-ae63c568711c128c64b1a94ef50e0af2ca91086b.tar.gz
Updated comments, fixed unit tests
Diffstat (limited to 'libdbus-qeventloop')
-rw-r--r--libdbus-qeventloop/dbusconnectioneventloop.h23
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: