diff options
Diffstat (limited to 'src/debugging/TSLogger.h')
-rw-r--r--[-rwxr-xr-x] | src/debugging/TSLogger.h | 59 |
1 files changed, 34 insertions, 25 deletions
diff --git a/src/debugging/TSLogger.h b/src/debugging/TSLogger.h index 39abcaa..5cbe4c9 100755..100644 --- a/src/debugging/TSLogger.h +++ b/src/debugging/TSLogger.h @@ -23,41 +23,50 @@ #include <tntqdialog.h> #include <tntqfile.h> -namespace Ui { +namespace Ui +{ class TSLoggerDialog; } -namespace tschweitzer { namespace debugging { - +namespace tschweitzer +{ + namespace debugging + { #define TSLoggerInfoMsg TQtMsgType(4) -class TSLogger : public TQDialog -{ - Q_OBJECT + class TSLogger : public TQDialog + { + Q_OBJECT -public: - static TSLogger* getInstance(int verboseLevel); - static TSLogger* getInstance(); - static void messageHandler(TQtMsgType type, const char *msg); - static void deleteInstance(); - void setVerboseLevel(int level); + public: + static TSLogger* getInstance(int verboseLevel); + static TSLogger* getInstance(); + static void messageHandler(TQtMsgType type, const char *msg); + static void deleteInstance(); + void setVerboseLevel(int level); -private slots: - void openLogFileFolder(); + private slots: + void openLogFileFolder(); -private: - Ui::TSLoggerDialog *_TSLoggerDialogForm; + private: + Ui::TSLoggerDialog *_TSLoggerDialogForm; - enum LogFileInitState { NOTINITIALZED, INITIALIZING, INITIALZED } _logFileInitState; - TSLogger(int verboseLevel); - void writeToLogFile(const TQString &message); + enum LogFileInitState + { + NOTINITIALZED, + INITIALIZING, + INITIALZED + } _logFileInitState; + TSLogger(int verboseLevel); - static TSLogger* _instance; - TQtMsgType _verboseLevel; - TQFile _logFile; - TQStringList _messageQueue; -}; + void writeToLogFile(const TQString &message); -}} // namespace tschweitzer::debugging + static TSLogger *_instance; + TQtMsgType _verboseLevel; + TQFile _logFile; + TQStringList _messageQueue; + }; + } +} // namespace tschweitzer::debugging #endif // TSLogger_H |