00001
00002
00003
00004
00005
00006
00007 #ifndef LOGGER_UPLOAD_H
00008 #define LOGGER_UPLOAD_H
00009
00010 #include <QtGlobal>
00011
00012 #if defined(WIN32) || defined(WIN64)
00013 #define NO_RETURN_VALUE
00014 #else
00015 #define NO_RETURN_VALUE Q_NORETURN
00016 #endif
00017
00018 class MainWindow;
00019
00021 class LoggerUpload
00022 {
00023 public:
00025 LoggerUpload();
00026
00028 static void bindToMainWindow (const MainWindow *mainWindow);
00029
00032 static void loggerAssert(const char *condition,
00033 const char* file,
00034 int line) NO_RETURN_VALUE;
00035
00037 static void loggerCheckPtr (const char *pointer,
00038 const char* file,
00039 int line) NO_RETURN_VALUE;
00040
00041 private:
00042
00043 static void loggerOutput (const char* comment,
00044 const char *file,
00045 int line,
00046 const char* context) NO_RETURN_VALUE;
00047
00048 static const MainWindow *m_mainWindow;
00049 };
00050
00051 #endif // LOGGER_UPLOAD_H