diff options
author | Mateu Batle <mateu.batle@collabora.co.uk> | 2011-06-20 14:43:24 -0500 |
---|---|---|
committer | Mateu Batle <mateu.batle@collabora.co.uk> | 2011-06-20 14:43:24 -0500 |
commit | a1ee79ac31047251a7b37fdfb1dfe225f11651ff (patch) | |
tree | 09397e99ce44106e85765ab6e8f1ae911fa276d6 | |
parent | b044428580f6a4096e9f20dcfd3dbce63d4ec3d1 (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-- | NEWS | 2 | ||||
-rw-r--r-- | TelepathyQt4Yell/contact-capabilities.cpp | 11 | ||||
-rw-r--r-- | TelepathyQt4Yell/contact-capabilities.h | 1 |
3 files changed, 13 insertions, 1 deletions
@@ -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; |