Merge branch 'bug_617_default_favlist_handling_fix'
[vuplus_dvbapp] / lib / driver / rcdbox.h
1 #ifndef DISABLE_DBOX_RC
2
3 #ifndef __rcdbox_h
4 #define __rcdbox_h
5
6 #include <lib/driver/rc.h>
7
8 class eRCDeviceDBoxOld: public eRCDevice
9 {
10         int last, ccode;
11         eTimer timeout, repeattimer;
12 private:
13         void timeOut();
14         void repeat();
15 public:
16         void handleCode(int code);
17         eRCDeviceDBoxOld(eRCDriver *driver);
18         const char *getDescription() const;
19         const char *getKeyDescription(const eRCKey &key) const;
20         int getKeyCompatibleCode(const eRCKey &key) const;
21 };
22
23 class eRCDeviceDBoxNew: public eRCDevice
24 {
25         int last, ccode;
26         eTimer timeout, repeattimer;
27 private:
28         void timeOut();
29         void repeat();
30 public:
31         void handleCode(int code);
32         eRCDeviceDBoxNew(eRCDriver *driver);
33         const char *getDescription() const;
34         const char *getKeyDescription(const eRCKey &key) const;
35         int getKeyCompatibleCode(const eRCKey &key) const;
36 };
37
38 class eRCDeviceDBoxButton: public eRCDevice
39 {
40         int last;
41         eTimer repeattimer;
42 private:
43         void repeat();
44 public:
45         void handleCode(int code);
46         eRCDeviceDBoxButton(eRCDriver *driver);
47         const char *getDescription() const;
48
49         const char *getKeyDescription(const eRCKey &key) const;
50         int getKeyCompatibleCode(const eRCKey &key) const;
51 };
52
53 class eRCDBoxDriver: public eRCShortDriver
54 {
55 public:
56         eRCDBoxDriver();
57 };
58
59 #endif
60
61 #endif // DISABLE_DBOX_RC