aboutsummaryrefslogtreecommitdiff
path: root/lib/driver/rcdreambox2.h
blob: 3adab5432e83f130096e17a19ed3d5af23bbee5c (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
#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();
	int getRepeatDelay();
	int getRepeatRate();
	int getKeyCode(int key);
public:
	void handleCode(int code);
	eRCDeviceDreambox2(eRCDriver *driver);
	const char *getDescription() const;
};

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

#endif

#endif // DISABLE_DREAMBOX_RC