aboutsummaryrefslogtreecommitdiff
path: root/lib/driver/rcdreambox2.h
blob: e77beb4e156cb48f916ff273af17d5277e703e9b (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
#ifndef DISABLE_DREAMBOX_RC

#ifndef __rcdreambox2_h
#define __rcdreambox2_h

#include <lib/driver/rc.h>

class eRCDeviceDreambox2: public eRCDevice
{
	int last, ccode;
	eTimer timeout, repeattimer;
private:
	void timeOut();
	void repeat();
public:
	void handleCode(int code);
	eRCDeviceDreambox2(eRCDriver *driver);
	const char *getDescription() const;
	const char *getKeyDescription(const eRCKey &key) const;
	int getKeyCompatibleCode(const eRCKey &key) const;
};

class eRCDreamboxDriver2: public eRCShortDriver
{
public:
	eRCDreamboxDriver2();
};

class eRCDeviceDreamboxButton: public eRCDevice
{
	int last;
	eTimer repeattimer;
private:
	void repeat();
public:
	void handleCode(int code);
	eRCDeviceDreamboxButton(eRCDriver *driver);
	const char *getDescription() const;

	const char *getKeyDescription(const eRCKey &key) const;
	int getKeyCompatibleCode(const eRCKey &key) const;
};

class eRCDreamboxButtonDriver: public eRCShortDriver
{
public:
	eRCDreamboxButtonDriver();
};
#endif

#endif // DISABLE_DREAMBOX_RC