[telepathy-qt4/master] debug: Moved docs to source file.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Thu Jun 18 08:42:44 PDT 2009


---
 TelepathyQt4/debug.cpp |   39 +++++++++++++++++++++++++++++++++++++++
 TelepathyQt4/debug.h   |   36 ------------------------------------
 2 files changed, 39 insertions(+), 36 deletions(-)

diff --git a/TelepathyQt4/debug.cpp b/TelepathyQt4/debug.cpp
index 77c43d9..63dc9bc 100644
--- a/TelepathyQt4/debug.cpp
+++ b/TelepathyQt4/debug.cpp
@@ -25,10 +25,49 @@
 
 #include <QIODevice>
 
+/**
+ * \defgroup debug Common debug support
+ *
+ * TelepathyQt4 has an internal mechanism for displaying debugging output. It
+ * uses the Qt4 debugging subsystem, so if you want to redirect the messages,
+ * use qInstallMsgHandler() from &lt;QtGlobal&gt;.
+ *
+ * Debugging output is divided into two categories: normal debug output and
+ * warning messages. Normal debug output results in the normal operation of the
+ * library, warning messages are output only when something goes wrong. Each
+ * category can be invidually enabled.
+ */
+
 namespace Tp
 {
 #ifdef ENABLE_DEBUG
 
+/**
+ * \fn void enableDebug(bool enable)
+ * \ingroup debug
+ *
+ * Enable or disable normal debug output from the library. If the library is not
+ * compiled with debug support enabled, this has no effect; no output is
+ * produced in any case.
+ *
+ * The default is <code>false</code> ie. no debug output.
+ *
+ * \param enable Whether debug output should be enabled or not.
+ */
+
+/**
+ * \fn void enableWarnings(bool enable)
+ * \ingroup debug
+ *
+ * Enable or disable warning output from the library. If the library is not
+ * compiled with debug support enabled, this has no effect; no output is
+ * produced in any case.
+ *
+ * The default is <code>true</code> ie. warning output enabled.
+ *
+ * \param enable Whether warnings should be enabled or not.
+ */
+
 namespace
 {
 struct DiscardDevice : public QIODevice
diff --git a/TelepathyQt4/debug.h b/TelepathyQt4/debug.h
index dc82c5c..1497ae0 100644
--- a/TelepathyQt4/debug.h
+++ b/TelepathyQt4/debug.h
@@ -26,46 +26,10 @@
 #error IN_TELEPATHY_QT4_HEADER
 #endif
 
-/**
- * \defgroup debug Common debug support
- *
- * TelepathyQt4 has an internal mechanism for displaying debugging output. It
- * uses the Qt4 debugging subsystem, so if you want to redirect the messages,
- * use qInstallMsgHandler() from &lt;QtGlobal&gt;.
- *
- * Debugging output is divided into two categories: normal debug output and
- * warning messages. Normal debug output results in the normal operation of the
- * library, warning messages are output only when something goes wrong. Each
- * category can be invidually enabled.
- */
-
 namespace Tp
 {
 
-/**
- * \ingroup debug
- *
- * Enable or disable normal debug output from the library. If the library is not
- * compiled with debug support enabled, this has no effect; no output is
- * produced in any case.
- *
- * The default is <code>false</code> ie. no debug output.
- *
- * \param enable Whether debug output should be enabled or not.
- */
 void enableDebug(bool enable);
-
-/**
- * \ingroup debug
- *
- * Enable or disable warning output from the library. If the library is not
- * compiled with debug support enabled, this has no effect; no output is
- * produced in any case.
- *
- * The default is <code>true</code> ie. warning output enabled.
- *
- * \param enable Whether warnings should be enabled or not.
- */
 void enableWarnings(bool enable);
 
 } // Tp
-- 
1.5.6.5




More information about the telepathy-commits mailing list