[Telepathy-commits] [telepathy-qt4/master] Channel: Add contact param to groupSelfContactChanged signal.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Tue Feb 10 13:36:25 PST 2009
---
TelepathyQt4/Client/channel.cpp | 10 ++++++----
TelepathyQt4/Client/channel.h | 2 +-
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/TelepathyQt4/Client/channel.cpp b/TelepathyQt4/Client/channel.cpp
index 2ee9ebf..73077ff 100644
--- a/TelepathyQt4/Client/channel.cpp
+++ b/TelepathyQt4/Client/channel.cpp
@@ -750,7 +750,7 @@ void Channel::Private::updateContacts(const QList<QSharedPointer<Contact> > &con
currentGroupMembersChangedInfo = 0;
if (selfContactUpdated) {
- emit parent->groupSelfContactChanged();
+ emit parent->groupSelfContactChanged(groupSelfContact);
}
processMembersChanged();
@@ -1543,9 +1543,11 @@ QSharedPointer<Contact> Channel::groupSelfContact() const
*/
/**
- * \fn void groupSelfContactChanged()
+ * \fn void groupSelfContactChanged(const QSharedPointer<Contact> &contact)
*
* Emitted when the value returned by groupSelfContact() changes.
+ *
+ * \param contact The self contact.
*/
//@}
@@ -1961,7 +1963,7 @@ void Channel::gotContacts(PendingOperation *op)
pending->invalidHandles().contains(mPriv->groupSelfHandle)) {
warning() << "Unable to retrieve self contact";
mPriv->groupSelfContact.clear();
- emit groupSelfContactChanged();
+ emit groupSelfContactChanged(mPriv->groupSelfContact);
}
}
} else {
@@ -2091,7 +2093,7 @@ void Channel::onSelfHandleChanged(uint newSelfHandle)
// newSelfHandle == 0 <- strange
// no need to call buildContacts ...
mPriv->groupSelfContact.clear();
- emit groupSelfContactChanged();
+ emit groupSelfContactChanged(mPriv->groupSelfContact);
}
}
}
diff --git a/TelepathyQt4/Client/channel.h b/TelepathyQt4/Client/channel.h
index f052a52..c10fab4 100644
--- a/TelepathyQt4/Client/channel.h
+++ b/TelepathyQt4/Client/channel.h
@@ -159,7 +159,7 @@ Q_SIGNALS:
void groupHandleOwnersChanged(const HandleOwnerMap &owners,
const Telepathy::UIntList &added, const Telepathy::UIntList &removed);
- void groupSelfContactChanged();
+ void groupSelfContactChanged(const QSharedPointer<Contact> &contact);
public:
template <class Interface>
--
1.5.6.5
More information about the telepathy-commits
mailing list