-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpowermate.h
57 lines (46 loc) · 1.33 KB
/
powermate.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
/*
* powermate plugin for VDR
*
* powermate.h - PowerMate control class
*
* Copyright (C) 2003 Andreas Regel <[email protected]>
*
* This code is distributed under the terms and conditions of the
* GNU GENERAL PUBLIC LICENSE. See the file COPYING for details.
*/
#ifndef _POWERMATE_H_
#define _POWERMATE_H_
#include <vdr/keys.h>
#include <vdr/status.h>
#include <vdr/thread.h>
#include <vdr/tools.h>
class cPowerMate : public cThread, cStatus
{
private:
int fd;
int context;
bool menu;
bool pushed;
uint64_t lastPush;
int offset;
bool click;
bool turn;
bool active;
virtual void Action();
void ProcessInputEvent(struct input_event * ev);
void ProcessEvent(int event);
void SendKey(eKeys key);
public:
cPowerMate();
virtual ~cPowerMate();
void SetBrightness(int brightness);
virtual void Replaying(const cControl *Control, const char *Name, const char *FileName, bool On);
virtual void OsdClear(void);
virtual void OsdTitle(const char *Title);
virtual void OsdHelpKeys(const char *Red, const char *Green, const char *Yellow, const char *Blue);
virtual void OsdItem(const char *Text, int Index);
virtual void OsdCurrentItem(const char *Text);
virtual void OsdTextItem(const char *Text, bool Scroll);
};
extern cPowerMate * PowerMate;
#endif