diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-10-23 08:54:09 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-10-28 09:05:03 (GMT) |
commit | 5c7345809d7f620981f92cc2e93beb14b10504a9 (patch) | |
tree | 4b45a00dd709d731a427307eee791b8121ad6d9b /src/dbus/qdbusconnection.cpp | |
parent | 5f444e7a1dd7f22b5546f5225e12355ec5cc4d57 (diff) | |
download | Qt-5c7345809d7f620981f92cc2e93beb14b10504a9.zip Qt-5c7345809d7f620981f92cc2e93beb14b10504a9.tar.gz Qt-5c7345809d7f620981f92cc2e93beb14b10504a9.tar.bz2 |
Add the ability for the match-rule builder to add argument matching.
I'll use this feature to match the NameOwnerChanged signal from the bus.
Diffstat (limited to 'src/dbus/qdbusconnection.cpp')
-rw-r--r-- | src/dbus/qdbusconnection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dbus/qdbusconnection.cpp b/src/dbus/qdbusconnection.cpp index bb0d06f..bead369 100644 --- a/src/dbus/qdbusconnection.cpp +++ b/src/dbus/qdbusconnection.cpp @@ -609,7 +609,7 @@ bool QDBusConnection::connect(const QString &service, const QString &path, const QString owner = d->getNameOwner(service); // we don't care if the owner is empty hook.signature = signature; // it might get started later - if (!d->prepareHook(hook, key, service, owner, path, interface, name, receiver, slot, 0, false)) + if (!d->prepareHook(hook, key, service, owner, path, interface, name, QStringList(), receiver, slot, 0, false)) return false; // don't connect // avoid duplicating: @@ -663,7 +663,7 @@ bool QDBusConnection::disconnect(const QString &service, const QString &path, co QString owner = d->getNameOwner(service); // we don't care of owner is empty hook.signature = signature; - if (!d->prepareHook(hook, key, service, owner, path, interface, name, receiver, slot, 0, false)) + if (!d->prepareHook(hook, key, service, owner, path, interface, name, QStringList(), receiver, slot, 0, false)) return false; // don't disconnect // avoid duplicating: |