telepathy-qt: AbstractDBusServiceInterface: Add default immutableProperties() implementation

Alexandr Akulich kaffeine at kemper.freedesktop.org
Mon Nov 11 17:28:15 UTC 2019


Module: telepathy-qt
Branch: master
Commit: 985e9f1f1389eb2cad59cfc513e638d52f9073ed
URL:    http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=985e9f1f1389eb2cad59cfc513e638d52f9073ed

Author: Alexander Akulich <akulichalexander at gmail.com>
Date:   Fri Nov  8 23:13:26 2019 +0300

AbstractDBusServiceInterface: Add default immutableProperties() implementation

---

 TelepathyQt/dbus-service.cpp | 5 +++++
 TelepathyQt/dbus-service.h   | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/TelepathyQt/dbus-service.cpp b/TelepathyQt/dbus-service.cpp
index fa393635..61cab851 100644
--- a/TelepathyQt/dbus-service.cpp
+++ b/TelepathyQt/dbus-service.cpp
@@ -257,6 +257,11 @@ QString AbstractDBusServiceInterface::interfaceName() const
     return mPriv->interfaceName;
 }
 
+QVariantMap AbstractDBusServiceInterface::immutableProperties() const
+{
+    return QVariantMap();
+}
+
 /**
  * Return the DBusObject on which the adaptor of this interface is plugged.
  *
diff --git a/TelepathyQt/dbus-service.h b/TelepathyQt/dbus-service.h
index cc51cb2d..0dfe121e 100644
--- a/TelepathyQt/dbus-service.h
+++ b/TelepathyQt/dbus-service.h
@@ -81,7 +81,7 @@ public:
 
     QString interfaceName() const;
 
-    virtual QVariantMap immutableProperties() const = 0;
+    virtual QVariantMap immutableProperties() const;
 
     DBusObject *dbusObject() const;
     bool isRegistered() const;



More information about the telepathy-commits mailing list