blob: bd361f67dcafbc23ebfbae191a968072769fd31c (
plain)
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
|
#ifndef DISABLE_DBOX_RC
#ifndef __rcdbox_h
#define __rcdbox_h
#include <lib/driver/rc.h>
class eRCDeviceDBoxOld: public eRCDevice
{
int last, ccode;
eTimer timeout, repeattimer;
private:
void timeOut();
void repeat();
public:
void handleCode(int code);
eRCDeviceDBoxOld(eRCDriver *driver);
const char *getDescription() const;
const char *getKeyDescription(const eRCKey &key) const;
int getKeyCompatibleCode(const eRCKey &key) const;
};
class eRCDeviceDBoxNew: public eRCDevice
{
int last, ccode;
eTimer timeout, repeattimer;
private:
void timeOut();
void repeat();
public:
void handleCode(int code);
eRCDeviceDBoxNew(eRCDriver *driver);
const char *getDescription() const;
const char *getKeyDescription(const eRCKey &key) const;
int getKeyCompatibleCode(const eRCKey &key) const;
};
class eRCDeviceDBoxButton: public eRCDevice
{
int last;
eTimer repeattimer;
private:
void repeat();
public:
void handleCode(int code);
eRCDeviceDBoxButton(eRCDriver *driver);
const char *getDescription() const;
const char *getKeyDescription(const eRCKey &key) const;
int getKeyCompatibleCode(const eRCKey &key) const;
};
class eRCDBoxDriver: public eRCShortDriver
{
public:
eRCDBoxDriver();
};
#endif
#endif // DISABLE_DBOX_RC
|