Advanced Settings Panel
[pierogi] / protocols / giprotocol.h
1 #ifndef GIPROTOCOL_H
2 #define GIPROTOCOL_H
3
4 #include "spaceprotocol.h"
5
6 class PIRRX51Hardware;
7
8 // The "G.I." protocol appears to be used by some Motorola boxes.
9
10 class GIProtocol: public SpaceProtocol
11 {
12 public:
13   GIProtocol(
14     QObject *guiObject,
15     unsigned int index);
16
17 public slots:
18   void startSendingCommand(
19     unsigned int threadableID,
20     PIRKeyName command);
21
22 private:
23   unsigned int repeatPulse;
24   unsigned int repeatSpace;
25
26   int generateStandardCommand(
27     const PIRKeyBits &bits,
28     PIRRX51Hardware &device);
29
30   int generateRepeatCommand(
31     PIRRX51Hardware &device);
32 };
33
34 #endif // GIPROTOCOL_H