diff options
Diffstat (limited to 'lib/driver/rcdbox.h')
| -rw-r--r-- | lib/driver/rcdbox.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/lib/driver/rcdbox.h b/lib/driver/rcdbox.h new file mode 100644 index 00000000..bd361f67 --- /dev/null +++ b/lib/driver/rcdbox.h @@ -0,0 +1,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 |
