[Telepathy-commits] [telepathy-qt4/master] ContactManager: Added signal that will be emitted when a contact asked to subscribe to your presence.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Tue Feb 24 13:23:38 PST 2009
---
TelepathyQt4/Client/contact-manager.cpp | 4 ++++
TelepathyQt4/Client/contact-manager.h | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/TelepathyQt4/Client/contact-manager.cpp b/TelepathyQt4/Client/contact-manager.cpp
index d65f3e8..3787a52 100644
--- a/TelepathyQt4/Client/contact-manager.cpp
+++ b/TelepathyQt4/Client/contact-manager.cpp
@@ -324,6 +324,10 @@ void ContactManager::onPublishChannelMembersChanged(
foreach (QSharedPointer<Contact> contact, groupMembersRemoved) {
contact->setPublishState(Contact::PresenceStateNo);
}
+
+ if (!groupRemotePendingMembersAdded.isEmpty()) {
+ emit presencePublishRequested(groupRemotePendingMembersAdded);
+ }
}
ContactManager::ContactManager(Connection *parent)
diff --git a/TelepathyQt4/Client/contact-manager.h b/TelepathyQt4/Client/contact-manager.h
index 5413f9e..d1d51d1 100644
--- a/TelepathyQt4/Client/contact-manager.h
+++ b/TelepathyQt4/Client/contact-manager.h
@@ -70,6 +70,9 @@ class ContactManager : public QObject
PendingContacts *upgradeContacts(const QList<QSharedPointer<Contact> > &contacts,
const QSet<Contact::Feature> &features);
+ Q_SIGNALS:
+ void presencePublishRequested(const QSet<QSharedPointer<Contact> > &contacts);
+
private Q_SLOTS:
void onAliasesChanged(const Telepathy::AliasPairList &);
void onAvatarUpdated(uint, const QString &);
--
1.5.6.5
More information about the telepathy-commits
mailing list