telepathy-qt: BaseConnectionSimplePresenceInterface: Added missing methods.

David Edmundson davidedmundson at kemper.freedesktop.org
Sun Aug 17 10:55:03 PDT 2014


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

Author: Alexandr Akulich <akulichalexander at gmail.com>
Date:   Tue Aug  5 00:07:04 2014 +0600

BaseConnectionSimplePresenceInterface: Added missing methods.

Methods statuses() and maximumStatusMessageLength() added and marked as public.

---

 TelepathyQt/base-connection.cpp |   11 ++++++++++-
 TelepathyQt/base-connection.h   |   11 +++++++----
 2 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/TelepathyQt/base-connection.cpp b/TelepathyQt/base-connection.cpp
index 82f29e8..e2f281b 100644
--- a/TelepathyQt/base-connection.cpp
+++ b/TelepathyQt/base-connection.cpp
@@ -994,17 +994,26 @@ void BaseConnectionSimplePresenceInterface::setSetPresenceCallback(const SetPres
     mPriv->setPresenceCB = cb;
 }
 
+Tp::SimpleStatusSpecMap BaseConnectionSimplePresenceInterface::statuses() const
+{
+    return mPriv->statuses;
+}
+
 void BaseConnectionSimplePresenceInterface::setStatuses(const SimpleStatusSpecMap &statuses)
 {
     mPriv->statuses = statuses;
 }
 
+int BaseConnectionSimplePresenceInterface::maximumStatusMessageLength() const
+{
+    return mPriv->maxmimumStatusMessageLength;
+}
+
 void BaseConnectionSimplePresenceInterface::setMaxmimumStatusMessageLength(uint maxmimumStatusMessageLength)
 {
     mPriv->maxmimumStatusMessageLength = maxmimumStatusMessageLength;
 }
 
-
 Tp::SimpleStatusSpecMap BaseConnectionSimplePresenceInterface::Adaptee::statuses() const
 {
     return mInterface->mPriv->statuses;
diff --git a/TelepathyQt/base-connection.h b/TelepathyQt/base-connection.h
index 83473e6..6002619 100644
--- a/TelepathyQt/base-connection.h
+++ b/TelepathyQt/base-connection.h
@@ -252,16 +252,19 @@ public:
 
     QVariantMap immutableProperties() const;
 
+    Tp::SimpleStatusSpecMap statuses() const;
+    void setStatuses(const Tp::SimpleStatusSpecMap &statuses);
+
+    int maximumStatusMessageLength() const;
+    void setMaxmimumStatusMessageLength(uint maxmimumStatusMessageLength);
+
     typedef Callback3<uint, const QString&, const QString&, DBusError*> SetPresenceCallback;
     void setSetPresenceCallback(const SetPresenceCallback &cb);
 
     void setPresences(const Tp::SimpleContactPresences &presences);
-    void setStatuses(const SimpleStatusSpecMap &statuses);
-    void setMaxmimumStatusMessageLength(uint maxmimumStatusMessageLength);
+
 protected:
     BaseConnectionSimplePresenceInterface();
-    Tp::SimpleStatusSpecMap statuses() const;
-    int maximumStatusMessageLength() const;
 
 private:
     void createAdaptor();



More information about the telepathy-commits mailing list