Engauge Digitizer  2
LoggerUpload.h
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef LOGGER_UPLOAD_H
8 #define LOGGER_UPLOAD_H
9 
10 #include <QtGlobal>
11 
12 #if defined(WIN32) || defined(WIN64)
13 #define NO_RETURN_VALUE
14 #else
15 #define NO_RETURN_VALUE Q_NORETURN
16 #endif
17 
18 class MainWindow;
19 
22 {
23 public:
25  LoggerUpload();
26 
28  static void bindToMainWindow (const MainWindow *mainWindow);
29 
32  static void loggerAssert(const char *condition,
33  const char* file,
34  int line) NO_RETURN_VALUE;
35 
37  static void loggerCheckPtr (const char *pointer,
38  const char* file,
39  int line) NO_RETURN_VALUE;
40 
41 private:
42 
43  static void loggerOutput (const char* comment,
44  const char *file,
45  int line,
46  const char* context) NO_RETURN_VALUE;
47 
48  static const MainWindow *m_mainWindow;
49 };
50 
51 #endif // LOGGER_UPLOAD_H
LoggerUpload()
Single constructor.
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:21
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition: MainWindow.h:89