Advanced Settings Panel
[pierogi] / protocols / daewooprotocol.h
1 #ifndef DAEWOOPROTOCOL_H
2 #define DAEWOOPROTOCOL_H
3
4 #include "spaceprotocol.h"
5
6 class PIRRX51Hardware;
7
8 //
9 // Daewoo is using something that looks like a simplified NEC protocol,
10 // lacking the inverted copy of the data that NEC sends, and with the addition
11 // of a marker bit sent inbetween the address and the command.
12 //
13
14 class DaewooProtocol: public SpaceProtocol
15 {
16 public:
17   DaewooProtocol(
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 midPulse;
28   unsigned int midSpace;
29
30   int generateStandardCommand(
31     const PIRKeyBits &bits,
32     PIRRX51Hardware &device);
33 };
34
35 #endif // DAEWOOPROTOCOL_H