-
Notifications
You must be signed in to change notification settings - Fork 1
/
Controller.h
66 lines (55 loc) · 1.95 KB
/
Controller.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//-----------------------------------------------------------------
// Controller File
// C++ Header - Controller.h - version 0.1 (2014/08/31)
//-----------------------------------------------------------------
#ifndef CONTROLLER_H
#define CONTROLLER_H
//-----------------------------------------------------------------
// Include Files
//-----------------------------------------------------------------
#include <external/QSingleApplication/SingleApplication.h>
#include "GUI/mainwindow.h"
#include "Logitech.h"
#include "Screen/StartScreen.h"
#include "HwaSettings.h"
//-----------------------------------------------------------------
// Controller Class
//-----------------------------------------------------------------
class Controller: public QObject
{
Q_OBJECT
public:
//---------------------------
// Constructor(s)
//---------------------------
Controller(QApplication*, SingleApplication*);
//---------------------------
// Destructor
//---------------------------
virtual ~Controller();
//---------------------------
// General Methods
//---------------------------
void openSettingsScreen();
void closeSettingsScreen();
void quitApplication();
private:
// -------------------------
// Datamembers
// -------------------------
MainWindow * mainWindow_;
Logitech * logitech_;
HwaSettings * settings_;
QApplication * app_;
SingleApplication * singleApp_;
protected slots:
void messageReceivedFromOtherInst(QString);
// -------------------------
// Disabling default copy constructor and default assignment operator.
// If you get a linker error from one of these functions, your class is internally trying to use them. This is
// an error in your class, these declarations are deliberately made without implementation because they should never be used.
// -------------------------
//Controller(const Controller& t);
//Controller& operator=(const Controller& t);
};
#endif