diff options
author | Kevron Rees <kevron.m.rees@intel.com> | 2015-01-22 15:00:36 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2015-02-15 02:17:53 +0000 |
commit | 0eec8c86b604374c3210133822d41df229698b34 (patch) | |
tree | ef38b6a2def0b285aa35b57c52fbbe14263640a2 /src/dbus/qdbusconnection.h | |
parent | 06ecd74db138bcdf6f87df5917f6d5035da41823 (diff) | |
download | qtbase-0eec8c86b604374c3210133822d41df229698b34.tar.gz |
QDBusConnection::registorObject with interface
Currently QDBus relies on a key in QMetaClassInfo to understand the DBus interface name.
This patch allows QDBus to also use a specified interface name in the registerObject call
instead of relying on QMetaClassInfo that might not be there (if the QObject was created
in QML or Javascript for example).
Change-Id: Ie02b2c67e7deb07f43e35eb166c11833fcbf38f3
Task-number: QTBUG-44074
Reviewed-by: Kevron Rees <kevron.m.rees@intel.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/dbus/qdbusconnection.h')
-rw-r--r-- | src/dbus/qdbusconnection.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dbus/qdbusconnection.h b/src/dbus/qdbusconnection.h index c89bbf4e3a..10598c0b7b 100644 --- a/src/dbus/qdbusconnection.h +++ b/src/dbus/qdbusconnection.h @@ -161,6 +161,8 @@ public: bool registerObject(const QString &path, QObject *object, RegisterOptions options = ExportAdaptors); + bool registerObject(const QString &path, const QString &interface, QObject *object, + RegisterOptions options = ExportAdaptors); void unregisterObject(const QString &path, UnregisterMode mode = UnregisterNode); QObject *objectRegisteredAt(const QString &path) const; |