X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/6a88cbc2bfa43b2a18eb896b3d635622da7e9d0a..ebd1552cdd3e60d5eb21f97e46570de2e17ed19f:/lib/driver/rc.h diff --git a/lib/driver/rc.h b/lib/driver/rc.h index 1ce13c72..e9542ca8 100644 --- a/lib/driver/rc.h +++ b/lib/driver/rc.h @@ -12,6 +12,8 @@ class eRCInput; class eRCDriver; class eRCKey; +#ifndef SWIG + /** * \brief A remote control. * @@ -161,13 +163,19 @@ public: rrate; // repeat rate (in ms) }; +#endif + class eRCInput: public Object { int locked; int handle; static eRCInput *instance; int keyboardMode; - +#ifdef SWIG + eRCInput(); + ~eRCInput(); +public: +#else public: struct lstr { @@ -182,10 +190,7 @@ public: Signal1 keyEvent; eRCInput(); ~eRCInput(); - - int lock(); - void unlock(); - int islocked() { return locked; } + void close(); bool open(); @@ -224,10 +229,13 @@ public: void removeDevice(const std::string &id); eRCDevice *getDevice(const std::string &id); std::map &getDevices(); - - static eRCInput *getInstance() { return instance; } - + eRCConfig config; +#endif + static eRCInput *getInstance() { return instance; } + int lock(); + void unlock(); + int islocked() { return locked; } }; #endif