-
Notifications
You must be signed in to change notification settings - Fork 2
/
ApplicationGlobals.h
38 lines (35 loc) · 1.66 KB
/
ApplicationGlobals.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef APPLICATIONGLOBALS_H
#define APPLICATIONGLOBALS_H
//---------------------------------------------------------------------------
// Include
//---------------------------------------------------------------------------
#include "Qt/MainWindow.h"
//---------------------------------------------------------------------------
namespace NSApplication {
//---------------------------------------------------------------------------
// CApplicationGlobals Declaration
//---------------------------------------------------------------------------
// A part of Application object
// Its purpose is to initialize all application global resources
// for example, timers, loggers, fileWriters etc.
//
// If you need a specific order in creation of the global resources
// please control them by dividing the class in to a sequence of
// inherited classes
// for example, if we need a timer to be initialized first and
// there is no specific order in initialization of other resources
// we may create a sequence like this:
// class CApplicationMainTimer : protected NSQt::CMainWindow {...};
// class CApplicationGlobals : protected CApplicationMainTimer {...};
// Then we instantiate the tiler in CApplicationMainTimer and
// all other resources are initialized in CApplicationGlobals
//---------------------------------------------------------------------------
class CApplicationGlobals : protected NSQt::CMainWindow {
using CBase = NSQt::CMainWindow;
public:
CApplicationGlobals();
};
//---------------------------------------------------------------------------
} // NSApplication
//---------------------------------------------------------------------------
#endif // APPLICATIONGLOBALS_H