-
Notifications
You must be signed in to change notification settings - Fork 1
/
AppletThread.h
64 lines (56 loc) · 1.87 KB
/
AppletThread.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
#ifdef _WIN32
//-----------------------------------------------------------------
// AppletThread File
// C++ Header - AppletThread.h - version 0.1 (2013/06/13)
//-----------------------------------------------------------------
#ifndef APPLETTHREAD_H
#define APPLETTHREAD_H
//-----------------------------------------------------------------
// Include Files
//-----------------------------------------------------------------
#include <Defines.h>
#include <qthread.h>
#include <Logitech.h>
//-----------------------------------------------------------------
// AppletThread Class
//-----------------------------------------------------------------
class AppletThread: public QThread
{
Q_OBJECT
public:
//---------------------------
// Constructor(s)
//---------------------------
AppletThread(CEzLcd* lcd, Logitech * logitech);
//---------------------------
// Destructor
//---------------------------
virtual ~AppletThread();
//---------------------------
// General Methods
//---------------------------
void run();
private:
void initLCDObjectsMonochrome();
void initLCDObjectsColor();
void checkButtonPresses();
void checkbuttonPressesMonochrome();
void checkbuttonPressesColor();
void updatePage();
// -------------------------
// Datamembers
// -------------------------
CEzLcd * lcd_;
Logitech * logitech_;
int time_;
int OkButtonTime_;
// -------------------------
// 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.
// -------------------------
AppletThread(const AppletThread& t);
AppletThread& operator=(const AppletThread& t);
};
#endif
#endif