Moved Mute button, lots new keysets
[pierogi] / protocols / necxprotocol.h
1 #ifndef NECXPROTOCOL_H
2 #define NECXPROTOCOL_H
3
4 #include "spaceprotocol.h"
5
6 class PIRRX51Hardware;
7
8 //
9 // The "NECX" protocol is a slight variation on the popular NEC protocol.
10 // It includes the "short repeat" feature of NEC, but implements it in a
11 // slightly different way.
12 //
13
14 class NECXProtocol: public SpaceProtocol
15 {
16 public:
17   NECXProtocol(
18     QObject *guiObject,
19     unsigned int index,
20     bool srtRep);
21
22 public slots:
23   void startSendingCommand(
24     unsigned int threadableID,
25     PIRKeyName command);
26
27 private:
28   bool isShortRepeat;
29
30   int generateStandardCommand(
31     const PIRKeyBits &bits,
32     PIRRX51Hardware &device);
33
34   int generateRepeatCommand(
35     PIRRX51Hardware &device);
36 };
37
38 #endif // NECXPROTOCOL_H