Add some documentation. Fix popup button locations on Maemo. Ensure popup buttons...
[dorian] / trace.h
1 #ifndef TRACE_H
2 #define TRACE_H
3
4 #include <QtDebug>
5 #include <QString>
6 #include <QTime>
7 #include <QEvent>
8
9 /** Trace helper. */
10 class Trace
11 {
12 public:
13     Trace(const QString &s);
14     ~Trace();
15     static QString event(QEvent::Type t);
16     static void messageHandler(QtMsgType type, const char *msg);
17     static QtMsgType level;
18
19 protected:
20     static const char *prefix();
21     QString name;
22     static int indent;
23     typedef struct {int type; const char *name;} EventName;
24     static EventName eventTab[];
25 };
26
27 #endif // TRACE_H