[Kde-pim] [PATCH] make use of QDBusServiceWatcher

Tobias Koenig tokoe at kde.org
Sun Feb 28 10:40:13 GMT 2010


Hej,

maybe you have seen lately the runtime warnings 

  Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged()

when running some KDE applications. That's because of the latest
versions of Qt discourage you to connect directly to this signal but
use the new class QDBusServiceWatcher instead. This class allows to
predefine the name of the service you want to watch and therefor allows
filtering much deeper inside the DBus stack to improve performance.

In Akonadi we make use of this signal at several places (server and client side),
so I tried to port the code to QDBusServiceWatcher. Unfortunately at some
points we do not match against a fixed service name but check inside the
serviceOwnerChanged slot if the service name is an agent or a resource and trigger
different actions depending on the match result. Therefor the attached patch
ports only the occurences with fixed service names.

Ok to commit?

Ciao,
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: akonadi_server_dbusowner.patch
Type: text/x-diff
Size: 4322 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20100228/a805536c/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: akonadi_libs_dbusowner.patch
Type: text/x-diff
Size: 5309 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20100228/a805536c/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20100228/a805536c/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list