summaryrefslogtreecommitdiffstats
path: root/src/loggerEngine.h
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-21 10:51:51 +0100
committerJonathan Bauer2011-03-21 10:51:51 +0100
commit635b5c64f3107d4c01ae314fb75e02c571b51c54 (patch)
tree4d2a3a679a569f9133ca8d3d5f5159b393accde3 /src/loggerEngine.h
parentdebug modes. -D now needs an arg: 0 for regular terminal output, 1 for debug ... (diff)
downloadfbgui-635b5c64f3107d4c01ae314fb75e02c571b51c54.tar.gz
fbgui-635b5c64f3107d4c01ae314fb75e02c571b51c54.tar.xz
fbgui-635b5c64f3107d4c01ae314fb75e02c571b51c54.zip
transformed c syntax comments to c++ convention...
Diffstat (limited to 'src/loggerEngine.h')
-rw-r--r--src/loggerEngine.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/loggerEngine.h b/src/loggerEngine.h
index 7b75112..be1ac87 100644
--- a/src/loggerEngine.h
+++ b/src/loggerEngine.h
@@ -20,7 +20,9 @@
#include <QxtCore>
#include <QTime>
#include <QTextEdit>
-
+//---------------------------------------------------------------------------------------------------
+// custom engine feeding the debug console widget
+//---------------------------------------------------------------------------------------------------
class loggerEngine_fb : public QxtLoggerEngine {
public:
loggerEngine_fb(QTextEdit* parent);
@@ -28,20 +30,24 @@ public:
QTextEdit *_debugConsole;
bool _initialized;
+ // reimplemented virtual functions of QxtLoggerEngine
void initLoggerEngine();
void killLoggerEngine();
void writeFormatted(QxtLogger::LogLevel level, const QList<QVariant> & messages);
-
void setLogLevelEnabled(QxtLogger::LogLevels level, bool enable = true);
bool isInitialized() const;
+
};
-/*********************************************************************************************/
+//---------------------------------------------------------------------------------------------------
+// minor changes to QxtBasicSTDLoggerEngine
+//---------------------------------------------------------------------------------------------------
class loggerEngine_std : public QxtBasicSTDLoggerEngine {
public:
loggerEngine_std();
~loggerEngine_std();
+ // reimplemented virtual functions of QxtBasicSTDLoggerEngineqqq
void writeToStdOut(const QString& level, const QList<QVariant> &msgs);
void writeToStdErr(const QString& str_level, const QList<QVariant> &msgs);
};
-#endif /* LOGGERENGINE_H_ */
+#endif // LOGGERENGINE_H_