Advanced Settings Panel
[pierogi] / protocols / paceprotocol.h
1 #ifndef PACEPROTOCOL_H
2 #define PACEPROTOCOL_H
3
4 #include "spaceprotocol.h"
5
6 class PIRRX51Hardware;
7
8 // The "Pace" protocol seems to be a very simple space-encoded protocol
9 // with little more than the command code and a toggle bit.
10
11 class PaceProtocol: public SpaceProtocol
12 {
13 public:
14   PaceProtocol(
15     QObject *guiObject,
16     unsigned int index);
17
18 public slots:
19   void startSendingCommand(
20     unsigned int threadableID,
21     PIRKeyName command);
22
23 private:
24   unsigned int keypressCount;
25
26   int generateStandardCommand(
27     const PIRKeyBits &bits,
28     PIRRX51Hardware &device);
29 };
30
31 #endif // PACEPROTOCOL_H