Advanced Settings Panel
[pierogi] / protocols / aiwaprotocol.h
1 #ifndef AIWAPROTOCOL_H
2 #define AIWAPROTOCOL_H
3
4 #include "spaceprotocol.h"
5
6 class PIRRX51Hardware;
7
8 //
9 // Aiwa's protocol is mostly similar to the NEC protocol, with a slightly
10 // different repeat pulse, and a slightly larger than normal address space.
11 //
12
13 class AiwaProtocol: public SpaceProtocol
14 {
15 public:
16   AiwaProtocol(
17     QObject *guiObject,
18     unsigned int index);
19
20 public slots:
21   void startSendingCommand(
22     unsigned int threadableID,
23     PIRKeyName command);
24
25 private:
26   unsigned int repeatPulse;
27   unsigned int repeatSpace;
28
29   int generateStandardCommand(
30     const PIRKeyBits &bits,
31     PIRRX51Hardware &device);
32
33   int generateRepeatCommand(
34     PIRRX51Hardware &device);
35 };
36
37 #endif // AIWAPROTOCOL_H