Keyset update
[pierogi] / keysets / genius.cpp
1 #include "genius.h"
2 #include "protocols/lircprotocol.h"
3
4
5 GeniusSpeakers1::GeniusSpeakers1(
6   unsigned int index)
7   : PIRKeysetMetaData(
8       "Speaker Keyset 1",
9       Genius_Make,
10       index)
11 {
12 }
13
14
15 void GeniusSpeakers1::populateProtocol(
16   QObject *guiObject)
17 {
18   if (threadableProtocol)
19   {
20     // Keyset already populated.
21     return;
22   }
23
24   LIRCProtocol *lp = new LIRCProtocol(
25     guiObject, index,
26     359, 1327,
27     1202, 484,
28     53977, true);
29
30   threadableProtocol = lp;
31
32   lp->setTrailerPulse(359);
33
34   setPreData(0x6, 3);
35
36   addKey("POWER", Power_Key, 0x50, 8);
37   addKey("MUTE", Mute_Key, 0x48, 8);
38   addKey("VOL_DOWN", VolumeDown_Key, 0x88, 8);
39   addKey("VOL_UP", VolumeUp_Key, 0x90, 8);
40 }