Advanced Settings Panel
[pierogi] / protocols / boseprotocol.h
1 #ifndef BOSEPROTOCOL_H
2 #define BOSEPROTOCOL_H
3
4 #include "spaceprotocol.h"
5
6 class PIRRX51Hardware;
7
8 //
9 // Bose appears to be using a simplified version of the NEC protocol; it
10 // has a smaller header, and completely omits the device address portion
11 // of the protocol (so, only the command portion is sent).
12 //
13
14 class BoseProtocol: public SpaceProtocol
15 {
16 public:
17   BoseProtocol(
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   int generateStandardCommand(
28     const PIRKeyBits &bits,
29     PIRRX51Hardware &device);
30 };
31
32 #endif // BOSEPROTOCOL_H