summaryrefslogtreecommitdiffstats
path: root/src/dbus/qdbusconnection_p.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-10-23 17:35:19 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-10-28 09:16:54 (GMT)
commit1176ecf0b533279e5a1c97f183e5c5f1c57fb188 (patch)
tree2af718b03d7e424d4755f68d2328875c1b4850e1 /src/dbus/qdbusconnection_p.h
parented75146e45d41ca52b64193acbf433e6d2ceaaf5 (diff)
downloadQt-1176ecf0b533279e5a1c97f183e5c5f1c57fb188.zip
Qt-1176ecf0b533279e5a1c97f183e5c5f1c57fb188.tar.gz
Qt-1176ecf0b533279e5a1c97f183e5c5f1c57fb188.tar.bz2
Stop using the NameOwnerChanged signal without arg0 in QtDBus itself
We were using this signal to update the signal hooks when the remote service changed. That meant each Qt app received every single service creation, change or destruction. Now we only watch the services we're really interested in.
Diffstat (limited to 'src/dbus/qdbusconnection_p.h')
-rw-r--r--src/dbus/qdbusconnection_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dbus/qdbusconnection_p.h b/src/dbus/qdbusconnection_p.h
index 2402719..ed29e4e 100644
--- a/src/dbus/qdbusconnection_p.h
+++ b/src/dbus/qdbusconnection_p.h
@@ -154,6 +154,7 @@ public:
typedef QMultiHash<QString, SignalHook> SignalHookHash;
typedef QHash<QString, QDBusMetaObject* > MetaObjectHash;
typedef QHash<QByteArray, int> MatchRefCountHash;
+ typedef QHash<QString, int> WatchedServicesHash;
public:
// public methods are entry points from other objects
@@ -270,6 +271,7 @@ public:
QDBusError lastError;
QStringList serviceNames;
+ WatchedServicesHash watchedServiceNames;
SignalHookHash signalHooks;
MatchRefCountHash matchRefCounts;
ObjectTreeNode rootNode;