[Telepathy-commits] [telepathy-qt4/master] Channel: Added reason param to groupRemoveContacts.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Tue Feb 10 13:16:02 PST 2009
---
TelepathyQt4/Client/channel.cpp | 6 ++++--
TelepathyQt4/Client/channel.h | 4 +++-
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/TelepathyQt4/Client/channel.cpp b/TelepathyQt4/Client/channel.cpp
index b4be208..81a82df 100644
--- a/TelepathyQt4/Client/channel.cpp
+++ b/TelepathyQt4/Client/channel.cpp
@@ -1229,12 +1229,14 @@ bool Channel::groupCanRemoveContacts() const
*
* \param contacts Contacts to be removed.
* \param message A string message, which can be blank if desired.
+ * \param reason Reason of the change, as specified in
+ * #ChannelGroupChangeReason.
* \return A PendingOperation which will emit PendingOperation::finished
* when the call has finished.
* \sa groupCanRemoveContacts()
*/
PendingOperation *Channel::groupRemoveContacts(const QList<QSharedPointer<Contact> > &contacts,
- const QString &message)
+ const QString &message, uint reason)
{
if (!isReady()) {
warning() << "Channel::groupRemoveContacts() used channel not ready";
@@ -1291,7 +1293,7 @@ PendingOperation *Channel::groupRemoveContacts(const QList<QSharedPointer<Contac
handles << contact->handle()[0];
}
return new PendingVoidMethodCall(this,
- mPriv->group->RemoveMembers(handles, message));
+ mPriv->group->RemoveMembersWithReason(handles, message, reason));
}
/**
diff --git a/TelepathyQt4/Client/channel.h b/TelepathyQt4/Client/channel.h
index 615caad..e4365a2 100644
--- a/TelepathyQt4/Client/channel.h
+++ b/TelepathyQt4/Client/channel.h
@@ -28,6 +28,7 @@
#include <TelepathyQt4/_gen/cli-channel.h>
+#include <TelepathyQt4/Constants>
#include <TelepathyQt4/Client/Contact>
#include <TelepathyQt4/Client/DBus>
#include <TelepathyQt4/Client/DBusProxy>
@@ -92,7 +93,8 @@ public:
bool groupCanRescindContacts() const;
bool groupCanRemoveContacts() const;
PendingOperation *groupRemoveContacts(const QList<QSharedPointer<Contact> > &contacts,
- const QString &message = QString());
+ const QString &message = QString(),
+ uint reason = Telepathy::ChannelGroupChangeReasonNone);
QList<QSharedPointer<Contact> > groupContacts() const;
QList<QSharedPointer<Contact> > groupLocalPendingContacts() const;
--
1.5.6.5
More information about the telepathy-commits
mailing list