summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateu Batle <mateu.batle@collabora.co.uk>2011-06-20 14:43:24 -0500
committerMateu Batle <mateu.batle@collabora.co.uk>2011-06-20 14:43:24 -0500
commita1ee79ac31047251a7b37fdfb1dfe225f11651ff (patch)
tree09397e99ce44106e85765ab6e8f1ae911fa276d6
parentb044428580f6a4096e9f20dcfd3dbce63d4ec3d1 (diff)
Add constructor to Tpy::ContactCapabilities so it can be really used
Author: Jeremy Whiting <jeremy.whiting@collabora.co.uk> Reviewed-by: Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>
-rw-r--r--NEWS2
-rw-r--r--TelepathyQt4Yell/contact-capabilities.cpp11
-rw-r--r--TelepathyQt4Yell/contact-capabilities.h1
3 files changed, 13 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 4460ffc..26bf4de 100644
--- a/NEWS
+++ b/NEWS
@@ -6,7 +6,7 @@ Enhancements:
Fixes:
* Report the connection status reason using the Connection object if possible
* On connection invalidated, emit the connection status changed signal to make sure the account model item is updated
-
+ * Add constructor to Tpy::ContactCapabilities so it can be really used
telepathy-qt4-yell 0.1.6 (2011-06-06)
======================================
diff --git a/TelepathyQt4Yell/contact-capabilities.cpp b/TelepathyQt4Yell/contact-capabilities.cpp
index f95ecc9..3b7e75c 100644
--- a/TelepathyQt4Yell/contact-capabilities.cpp
+++ b/TelepathyQt4Yell/contact-capabilities.cpp
@@ -76,6 +76,17 @@ ContactCapabilities::ContactCapabilities(const Tp::RequestableChannelClassSpecLi
}
/**
+ * Construct a new ContactCapabilities object using the other \a rccSpecs.
+ *
+ * \param rccSpecs RequestableChannelClassList representing the capabilities of a
+ * contact.
+ */
+ContactCapabilities::ContactCapabilities(const Tp::ContactCapabilities &other)
+ : Tp::ContactCapabilities(other.allClassSpecs(), other.isSpecificToContact())
+{
+}
+
+/**
* Class destructor.
*/
ContactCapabilities::~ContactCapabilities()
diff --git a/TelepathyQt4Yell/contact-capabilities.h b/TelepathyQt4Yell/contact-capabilities.h
index 9ecd058..821b738 100644
--- a/TelepathyQt4Yell/contact-capabilities.h
+++ b/TelepathyQt4Yell/contact-capabilities.h
@@ -37,6 +37,7 @@ class TELEPATHY_QT4_YELL_EXPORT ContactCapabilities : public Tp::ContactCapabili
{
public:
ContactCapabilities();
+ ContactCapabilities(const Tp::ContactCapabilities &other);
virtual ~ContactCapabilities();
bool mediaCalls() const;