[Telepathy-commits] [telepathy-qt4/master] PendingChannel: Correct documentation of handle, handleType

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Feb 10 03:55:26 PST 2009


---
 TelepathyQt4/Client/pending-channel.cpp |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/TelepathyQt4/Client/pending-channel.cpp b/TelepathyQt4/Client/pending-channel.cpp
index 8bfe717..5245462 100644
--- a/TelepathyQt4/Client/pending-channel.cpp
+++ b/TelepathyQt4/Client/pending-channel.cpp
@@ -174,7 +174,14 @@ const QString &PendingChannel::channelType() const
 }
 
 /**
- * Return the handle type specified in the channel request.
+ * If the channel request has finished, return the handle type of the resulting
+ * channel. Otherwise, return the handle type that was requested.
+ *
+ * (One example of a request producing a different target handle type is that
+ * on protocols like MSN, one-to-one conversations don't really exist, and if
+ * you request a text channel with handle type HandleTypeContact, what you
+ * will actually get is a text channel with handle type HandleTypeNone, with
+ * the requested contact as a member.)
  *
  * \return The handle type, as specified in #HandleType.
  */
@@ -184,7 +191,9 @@ uint PendingChannel::handleType() const
 }
 
 /**
- * Return the handle specified in the channel request.
+ * If the channel request has finished, return the target handle of the
+ * resulting channel. Otherwise, return the target handle that was requested
+ * (which might be different in some situations - see handleType).
  *
  * \return The handle.
  */
-- 
1.5.6.5




More information about the telepathy-commits mailing list