Advanced Settings Panel
[pierogi] / protocols / thomsonprotocol.h
1 #ifndef THOMSONPROTOCOL_H
2 #define THOMSONPROTOCOL_H
3
4 #include "spaceprotocol.h"
5
6 class PIRRX51Hardware;
7
8 //
9 // Thomson protocol is a nice little protocol, taking space-encoded values
10 // from the NEC protocol family and adding a toggle bit from the Philips
11 // family...
12 //
13
14 class ThomsonProtocol: public SpaceProtocol
15 {
16 public:
17   ThomsonProtocol(
18     QObject *guiObject,
19     unsigned int index);
20
21 public slots:
22   void startSendingCommand(
23     unsigned int threadableID,
24     PIRKeyName command);
25
26 private:
27   unsigned int keypressCount;
28
29   int generateStandardCommand(
30     const PIRKeyBits &bits,
31     PIRRX51Hardware &device);
32 };
33
34 #endif // THOMSONPROTOCOL_H