[Telepathy-commits] [telepathy-qt4/master] Account: Added requestedFeatures/actualFeatures/missingFeatures.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Wed Mar 4 08:17:55 PST 2009


---
 TelepathyQt4/Client/account.cpp |   15 +++++++++++++++
 TelepathyQt4/Client/account.h   |    4 ++++
 2 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/TelepathyQt4/Client/account.cpp b/TelepathyQt4/Client/account.cpp
index afd68e7..496f3e2 100644
--- a/TelepathyQt4/Client/account.cpp
+++ b/TelepathyQt4/Client/account.cpp
@@ -673,6 +673,21 @@ PendingReady *Account::becomeReady(const QSet<uint> &requestedFeatures)
     return mPriv->readinessHelper->becomeReady(requestedFeatures);
 }
 
+QSet<uint> Account::requestedFeatures() const
+{
+    return mPriv->readinessHelper->requestedFeatures();
+}
+
+QSet<uint> Account::actualFeatures() const
+{
+    return mPriv->readinessHelper->actualFeatures();
+}
+
+QSet<uint> Account::missingFeatures() const
+{
+    return mPriv->readinessHelper->missingFeatures();
+}
+
 QStringList Account::interfaces() const
 {
     return mPriv->interfaces;
diff --git a/TelepathyQt4/Client/account.h b/TelepathyQt4/Client/account.h
index 3a03ca5..53c60ac 100644
--- a/TelepathyQt4/Client/account.h
+++ b/TelepathyQt4/Client/account.h
@@ -134,6 +134,10 @@ public:
 
     PendingReady *becomeReady(const QSet<uint> &requestedFeatures = QSet<uint>());
 
+    QSet<uint> requestedFeatures() const;
+    QSet<uint> actualFeatures() const;
+    QSet<uint> missingFeatures() const;
+
     QStringList interfaces() const;
 
     template <class Interface>
-- 
1.5.6.5




More information about the telepathy-commits mailing list