diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-12-29 23:37:11 -0200 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2015-09-15 02:08:27 +0000 |
commit | 2bcc913a7f302cc404efcba951565bdeab9e1de4 (patch) | |
tree | 479ed2f78beec5b1153ba9c0b0c0c88abeed114b /src/dbus/qdbusabstractinterface_p.h | |
parent | 2e12f6e63ddb1ea3c79660cd99ffb96d4cd0bd82 (diff) |
Use QDBusServiceWatcher in QDBusAbstractInterface to track the owner
Instead of connecting to the "NameOwnerChanged" signal. This has better
performance, is simpler to implement and is future-proof: when we switch
to kdbus, there won't be a "NameOwnerChanged" signal to connect to. On
the drawback side, this will use slightly more memory.
Change-Id: I5801b8027949f041309567a493000fe7de9bf227
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Reviewed-by: Albert Astals Cid <aacid@kde.org>
Diffstat (limited to 'src/dbus/qdbusabstractinterface_p.h')
-rw-r--r-- | src/dbus/qdbusabstractinterface_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dbus/qdbusabstractinterface_p.h b/src/dbus/qdbusabstractinterface_p.h index ba2bcadfb0..1ce457d94b 100644 --- a/src/dbus/qdbusabstractinterface_p.h +++ b/src/dbus/qdbusabstractinterface_p.h @@ -1,6 +1,7 @@ /**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. +** Copyright (C) 2015 Intel Corporation. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the QtDBus module of the Qt Toolkit. @@ -78,6 +79,7 @@ public: QDBusAbstractInterfacePrivate(const QString &serv, const QString &p, const QString &iface, const QDBusConnection& con, bool dynamic); virtual ~QDBusAbstractInterfacePrivate() { } + void initOwnerTracking(); bool canMakeCalls() const; // these functions do not check if the property is valid |