27#ifndef ERRORREPORTER_H
28#define ERRORREPORTER_H
48 bool isDead()
const {
return dead; };
51 void doAction(QAbstractButton *button);
58#define ERRORREPORTER_DEFAULT_MESSAGE "The action failed"
70#define MSG_ERR(M) (ErrorReporter::GetInstance()->Report(M, ErrorReporter::Error))
72#define MSG_WARN(M) (ErrorReporter::GetInstance()->Report(M, ErrorReporter::Warning))
74#define MSG_DIAG(M) (ErrorReporter::GetInstance()->Report(M, ErrorReporter::Diagnostic))
76#define MSG_FATAL(M) (ErrorReporter::GetInstance()->Report(M, ErrorReporter::Fatal))
118 std::vector<Message> _log;
119 std::vector<Message> _fullLog;
120 std::string _logFilePath;
123 std::vector<ErrorReporterPopup *> _boxes;
A utility singleton class that provides error reporting functinality.
static void Report(std::string msg, Type severity=Diagnostic, std::string details="")
friend void _myBaseErrorCallback(const char *msg, int err_code)
static std::string GetSystemInformation()
ErrorReporter(QWidget *parent)
static int OpenLogFile(std::string path)
static ErrorReporter * GetInstance()
friend void _myBaseDiagCallback(const char *msg)
static void ShowErrors()
Displays the current log of errors with the default message ERRORREPORTER_DEFAULT_MESSAGE.
Message(Type type_, std::string value_, int err_code_=0)