diff options
author | Dario Freddi <dario.freddi@collabora.com> | 2012-02-09 14:42:58 +0100 |
---|---|---|
committer | Dario Freddi <dario.freddi@collabora.com> | 2012-02-09 16:52:14 +0100 |
commit | 4ca9827cb599aad0f0143e51c9d84d6d350dc8ff (patch) | |
tree | 0735ebaaffcb486b9470b1298ddf50e476f02514 /TelepathyQt/abstract-interface.h | |
parent | 6673539b3e39a8f9d3ab0a1db5dcd87aa5c9d4cc (diff) |
monitor-properties: Add methods and signals in AbstractInterface for monitoring property changes
Diffstat (limited to 'TelepathyQt/abstract-interface.h')
-rw-r--r-- | TelepathyQt/abstract-interface.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/TelepathyQt/abstract-interface.h b/TelepathyQt/abstract-interface.h index 53205e07..840b174c 100644 --- a/TelepathyQt/abstract-interface.h +++ b/TelepathyQt/abstract-interface.h @@ -51,6 +51,13 @@ public: QString invalidationReason() const; QString invalidationMessage() const; + void setMonitorProperties(bool monitorProperties); + bool isMonitoringProperties() const; + +Q_SIGNALS: + void propertiesChanged(const QMap<QString,QVariant> &changedProperties, + const QStringList &invalidatedProperties); + protected Q_SLOTS: virtual void invalidate(Tp::DBusProxy *proxy, const QString &error, const QString &message); @@ -65,6 +72,11 @@ protected: PendingOperation *internalSetProperty(const QString &name, const QVariant &newValue); PendingVariantMap *internalRequestAllProperties() const; +private Q_SLOTS: + TP_QT_NO_EXPORT void onPropertiesChanged(const QString &interface, + const QMap<QString,QVariant> &changedProperties, + const QStringList &invalidatedProperties); + private: struct Private; friend struct Private; |