Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
LoggerUpload.h
1 #ifndef LOGGER_UPLOAD_H
2 #define LOGGER_UPLOAD_H
3 
4 #include <QtGlobal>
5 
6 #if defined(WIN32) || defined(WIN64)
7 #define NO_RETURN_VALUE
8 #else
9 #define NO_RETURN_VALUE Q_NORETURN
10 #endif
11 
12 class MainWindow;
13 
16 {
17 public:
19  LoggerUpload();
20 
22  static void bindToMainWindow (const MainWindow *mainWindow);
23 
26  static void loggerAssert(const char *condition,
27  const char* file,
28  int line) NO_RETURN_VALUE;
29 
31  static void loggerCheckPtr (const char *pointer,
32  const char* file,
33  int line) NO_RETURN_VALUE;
34 
35 private:
36 
37  static void loggerOutput (const char* comment,
38  const char *file,
39  int line,
40  const char* context) NO_RETURN_VALUE;
41 
42  static const MainWindow *m_mainWindow;
43 };
44 
45 #endif // LOGGER_UPLOAD_H
LoggerUpload()
Single constructor.
Definition: LoggerUpload.cpp:7
static void loggerAssert(const char *condition, const char *file, int line) NO_RETURN_VALUE
Smart equivalent to standard assert method and Q_ASSERT (in qglobal.h).
static void bindToMainWindow(const MainWindow *mainWindow)
Bind to MainWindow so this class can access the command stack.
static void loggerCheckPtr(const char *pointer, const char *file, int line) NO_RETURN_VALUE
Smart equivalent to Q_CHECK_PTR (in qglobal.h). Similar to loggerAssert but for checking newly-alloca...
Upload logging information to website for developer support.
Definition: LoggerUpload.h:15
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition: MainWindow.h:66