Observe volume keys on Symbian. Add minimal documentation to headers.
[dorian] / trace.h
diff --git a/trace.h b/trace.h
index 3fe1458..bd5acfc 100644 (file)
--- a/trace.h
+++ b/trace.h
@@ -1,11 +1,23 @@
 #ifndef TRACE_H
 #define TRACE_H
 
+#include <QtGlobal>
 #include <QtDebug>
 #include <QString>
 #include <QTime>
 #include <QEvent>
 
+#ifdef Q_OS_SYMBIAN
+#   ifdef __PRETTY_FUNCTION__
+#       define TRACE Trace _(__PRETTY_FUNCTION__)
+#   else
+#       define TRACE Trace _(__FUNCTION__)
+#   endif
+#else
+#   define TRACE Trace _(Q_FUNC_INFO)
+#endif
+
+/** Trace helper. */
 class Trace
 {
 public:
@@ -16,7 +28,7 @@ public:
     static QtMsgType level;
 
 protected:
-    static const char *prefix();
+    static QString prefix();
     QString name;
     static int indent;
     typedef struct {int type; const char *name;} EventName;