/
lcdscreenmain.h
executable file
·54 lines (41 loc) · 1 KB
/
lcdscreenmain.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
// Filename: lcdmainscreen.h
// Description: main screen and user input for record and play
//
// Open Source Licensing GPL 3
//
// Author: Dr. Valentin Illich, www.valentins-qtsolutions.de
//--------------------------------------------------------------------------------------------------
#ifndef LCDSCREENMAIN_H
#define LCDSCREENMAIN_H
#include "lcdscreen.h"
typedef enum
{
eNoAction,
eNoShutdown,
eShutDown,
eSelection
} msgType;
class lcdscreenmain : public lcdscreen
{
public:
lcdscreenmain();
virtual ~lcdscreenmain();
void startRecording();
void stopRecording();
void startPlay(char *playfile);
void stopPlay();
void updateRemaining();
protected:
virtual void activatedHandler();
virtual keyType secTimerHandler(struct tm *result);
virtual keyType keyEventHandler( keyType key );
private:
char m_recordfile[1024];
char m_remaining[32];
int m_recordId;
int m_playId;
bool m_playSuspended;
int m_startTime;
msgType m_lastScreen;
};
#endif // LCDSCREENMAIN_H