[telepathy-qt4/master] ContactManager: Added membersAdded/removed to groupMembersChanged signal.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Wed Jul 22 12:08:54 PDT 2009
---
TelepathyQt4/contact-manager.cpp | 4 ++--
TelepathyQt4/contact-manager.h | 4 +++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/TelepathyQt4/contact-manager.cpp b/TelepathyQt4/contact-manager.cpp
index fe7fb95..c62ca04 100644
--- a/TelepathyQt4/contact-manager.cpp
+++ b/TelepathyQt4/contact-manager.cpp
@@ -887,14 +887,14 @@ void ContactManager::onContactListGroupMembersChanged(
QString id = contactListGroupChannel->immutableProperties().value(
QLatin1String(TELEPATHY_INTERFACE_CHANNEL ".TargetID")).toString();
- emit groupMembersChanged(id);
-
foreach (const ContactPtr &contact, groupMembersAdded) {
contact->setAddedToGroup(id);
}
foreach (const ContactPtr &contact, groupMembersRemoved) {
contact->setRemovedFromGroup(id);
}
+
+ emit groupMembersChanged(id, groupMembersAdded, groupMembersRemoved);
}
void ContactManager::onContactListGroupRemoved(Tp::DBusProxy *proxy,
diff --git a/TelepathyQt4/contact-manager.h b/TelepathyQt4/contact-manager.h
index a70d500..92ac870 100644
--- a/TelepathyQt4/contact-manager.h
+++ b/TelepathyQt4/contact-manager.h
@@ -111,7 +111,9 @@ Q_SIGNALS:
void presencePublicationRequested(const Tp::Contacts &contacts);
void groupAdded(const QString &group);
void groupRemoved(const QString &group);
- void groupMembersChanged(const QString &group);
+ void groupMembersChanged(const QString &group,
+ const Tp::Contacts &groupMembersAdded,
+ const Tp::Contacts &groupMembersRemoved);
private Q_SLOTS:
void onAliasesChanged(const Tp::AliasPairList &);
--
1.5.6.5
More information about the telepathy-commits
mailing list