[Telepathy-commits] [telepathy-qt4/master] TextChannel: Improve documentation

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Feb 18 10:55:13 PST 2009


---
 TelepathyQt4/Client/text-channel.cpp |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/TelepathyQt4/Client/text-channel.cpp b/TelepathyQt4/Client/text-channel.cpp
index fa2e885..ed40abe 100644
--- a/TelepathyQt4/Client/text-channel.cpp
+++ b/TelepathyQt4/Client/text-channel.cpp
@@ -114,6 +114,10 @@ TextChannel::~TextChannel()
  * Return whether this channel supports the Telepathy Messages interface.
  * If it does not, some advanced functionality will be unavailable.
  *
+ * The result of calling this method is undefined until basic Channel
+ * functionality has been enabled by calling becomeReady and waiting for the
+ * pending operation to complete.
+ *
  * \return true if the Messages interface is supported
  */
 bool TextChannel::hasMessagesInterface() const
@@ -125,7 +129,10 @@ bool TextChannel::hasMessagesInterface() const
 /**
  * Return whether the desired features are ready for use.
  *
- * \return true if all the requested features are ready
+ * \param channelFeatures Features of the Channel class
+ * \param textFeatures Features of the TextChannel class
+ * \return true if basic Channel functionality, and all the requested features
+ *         (if any), are ready for use
  */
 bool TextChannel::isReady(Channel::Features channelFeatures,
         Features textFeatures) const
@@ -136,6 +143,15 @@ bool TextChannel::isReady(Channel::Features channelFeatures,
         ((mPriv->features & textFeatures) == textFeatures);
 }
 
+/**
+ * Gather the necessary information to use the requested features.
+ *
+ * \param channelFeatures Features of the Channel class
+ * \param textFeatures Features of the TextChannel class
+ * \return A pending operation which will finish when basic Channel
+ *         functionality, and all the requested features (if any), are ready
+ *         for use
+ */
 PendingReadyChannel *TextChannel::becomeReady(
         Channel::Features channelFeatures,
         Features textFeatures)
-- 
1.5.6.5




More information about the telepathy-commits mailing list