Engauge Digitizer  2
LoggerUpload.h
Go to the documentation of this file.
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 (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 MainWindow *m_mainWindow;
49 };
50 
51 #endif // LOGGER_UPLOAD_H
LoggerUpload()
Single constructor.
#define NO_RETURN_VALUE
Definition: LoggerUpload.h:15
static void bindToMainWindow(MainWindow *mainWindow)
Bind to MainWindow so this class can access the command stack.
Upload logging information to website for developer support.
Definition: LoggerUpload.h:21
static void loggerCheckPtr(const char *pointer, const char *file, int line) Q_NORETURN
Smart equivalent to Q_CHECK_PTR (in qglobal.h). Similar to loggerAssert but for checking newly-alloca...
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition: MainWindow.h:91
static void loggerAssert(const char *condition, const char *file, int line) Q_NORETURN
Smart equivalent to standard assert method and Q_ASSERT (in qglobal.h).