summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--TelepathyQt4Yell/Models/contact-model-item.cpp1
-rw-r--r--TelepathyQt4Yell/Models/contact-model-item.h3
3 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index ae7eed9..897638c 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ telepathy-qt4-yell 0.1.x
Enhancements:
* Emit a signal when an account item is added to AccountsModel
+ * Emit a signal on contact item when the caps get updated
Fixes:
* Report the connection status reason using the Connection object if possible
diff --git a/TelepathyQt4Yell/Models/contact-model-item.cpp b/TelepathyQt4Yell/Models/contact-model-item.cpp
index 564d831..9e1986c 100644
--- a/TelepathyQt4Yell/Models/contact-model-item.cpp
+++ b/TelepathyQt4Yell/Models/contact-model-item.cpp
@@ -203,6 +203,7 @@ Tp::ContactPtr ContactModelItem::contact() const
void ContactModelItem::onCapabilitiesChanged()
{
mPriv->mCallContactCaps.updateRequestableChannelClasses(mPriv->mContact->capabilities().allClassSpecs().bareClasses());
+ emit capabilitiesChanged();
}
}
diff --git a/TelepathyQt4Yell/Models/contact-model-item.h b/TelepathyQt4Yell/Models/contact-model-item.h
index b6fd72e..4dbb5b1 100644
--- a/TelepathyQt4Yell/Models/contact-model-item.h
+++ b/TelepathyQt4Yell/Models/contact-model-item.h
@@ -46,6 +46,9 @@ public:
Tp::ContactPtr contact() const;
+Q_SIGNALS:
+ void capabilitiesChanged();
+
public Q_SLOTS:
void onChanged();
void onCapabilitiesChanged();