X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=protocols%2Fkathreinprotocol.h;fp=protocols%2Fkathreinprotocol.h;h=a511fc8f441688f4d10a2869ff9ca3c328ad0904;hb=d724312c55dabe2c72175e88abf694880312fac4;hp=0000000000000000000000000000000000000000;hpb=fb8932101ae4f67f18ffa31073d51823cc872ac8;p=pierogi diff --git a/protocols/kathreinprotocol.h b/protocols/kathreinprotocol.h new file mode 100644 index 0000000..a511fc8 --- /dev/null +++ b/protocols/kathreinprotocol.h @@ -0,0 +1,36 @@ +#ifndef KATHREINPROTOCOL_H +#define KATHREINPROTOCOL_H + +#include "spaceprotocol.h" + +class PIRRX51Hardware; + +// +// The Kathrein 24-bit protocol shares some features with the NEC protocol +// (space encoded, LSB order, sends complement of device and command codes), +// but has only a 4-bit address code, and uses a unique repeat mechanism. +// + +class KathreinProtocol: public SpaceProtocol +{ +public: + KathreinProtocol( + QObject *guiObject, + unsigned int index); + +public slots: + void startSendingCommand( + unsigned int threadableID, + PIRKeyName command); + +private: + int generateStandardCommand( + const PIRKeyBits &bits, + PIRRX51Hardware &device); + + int generateRepeatCommand( + const PIRKeyBits &bits, + PIRRX51Hardware &device); +}; + +#endif // KATHREINPROTOCOL_H