diff options
| author | Jonathan Bauer | 2011-03-21 10:51:51 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2011-03-21 10:51:51 +0100 |
| commit | 635b5c64f3107d4c01ae314fb75e02c571b51c54 (patch) | |
| tree | 4d2a3a679a569f9133ca8d3d5f5159b393accde3 /src/loggerEngine.h | |
| parent | debug modes. -D now needs an arg: 0 for regular terminal output, 1 for debug ... (diff) | |
| download | fbgui-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.h | 14 |
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_ |
