X-Git-Url: http://git.maemo.org/git/?p=pierogi;a=blobdiff_plain;f=protocols%2Fpaceprotocol.h;fp=protocols%2Fpaceprotocol.h;h=2fb0f944f56f3760c4d2afa1e01f5b51a05b5639;hp=0000000000000000000000000000000000000000;hb=4a08d7494fbeaf202ea8eeaa641fd3ea808f9160;hpb=04d45dab5c6b32e9214fa21b7ade432da95c8a98 diff --git a/protocols/paceprotocol.h b/protocols/paceprotocol.h new file mode 100644 index 0000000..2fb0f94 --- /dev/null +++ b/protocols/paceprotocol.h @@ -0,0 +1,31 @@ +#ifndef PACEPROTOCOL_H +#define PACEPROTOCOL_H + +#include "spaceprotocol.h" + +class PIRRX51Hardware; + +// The "Pace" protocol seems to be a very simple space-encoded protocol +// with little more than the command code and a toggle bit. + +class PaceProtocol: public SpaceProtocol +{ +public: + PaceProtocol( + QObject *guiObject, + unsigned int index); + +public slots: + void startSendingCommand( + unsigned int threadableID, + PIRKeyName command); + +private: + unsigned int keypressCount; + + int generateStandardCommand( + const PIRKeyBits &bits, + PIRRX51Hardware &device); +}; + +#endif // PACEPROTOCOL_H