Fix for command overrun
[pierogi] / keysets / ei.cpp
1 #include "ei.h"
2 #include "rc5protocol.h"
3
4 // Based on LIRC Ei-TV90 config file
5 EiKeyset::EiKeyset(
6   QObject *guiObject,
7   unsigned int index)
8   : PIRKeysetMetaData(
9       "Ei-TV90",
10       Ei_Make,
11       index)
12 {
13   addControlledDevice(Ei_Make, "COLOR 51100", TV_Device);
14   addControlledDevice(Ei_Make, "COLOR 55100", TV_Device);
15   addControlledDevice(Ei_Make, "COLOR 63105", TV_Device);
16   addControlledDevice(Ei_Make, "COLOR 56105", TV_Device);
17   addControlledDevice(Ei_Make, "COLOR 72105", TV_Device);
18
19   RC5Protocol *rp = new RC5Protocol(
20     guiObject,
21     index,
22     931, 836,
23     969,
24     113205, 2);
25
26   threadableProtocol = rp;
27
28   rp->setPreData(0x10, 5);
29
30   rp->setToggleBit(2);
31
32   addKey("i", Unmapped_Key, 0x35, 8);
33   addKey("a", Unmapped_Key, 0x37, 8);
34   addKey("b", Unmapped_Key, 0x36, 8);
35   addKey("c", Unmapped_Key, 0x32, 8);
36   addKey("d", Unmapped_Key, 0x34, 8);
37   addKey("Page Down", Unmapped_Key, 0x0B, 8);
38   addKey("Page Up", Unmapped_Key, 0x0A, 8);
39   addKey("TV in TXT", Unmapped_Key, 0x2D, 8);
40   addKey("Stop TXT", Unmapped_Key, 0x29, 8);
41   addKey("Time TXT", Unmapped_Key, 0x2A, 8);
42   addKey("TV", Unmapped_Key, 0x3F, 8);
43   addKey("TXT On", Unmapped_Key, 0x3C, 8);
44   addKey("?", Unmapped_Key, 0x2C, 8);
45   addKey("Zoom", Unmapped_Key, 0x2B, 8);
46   addKey("Background TV", Unmapped_Key, 0x2E, 8);
47   addKey("1", One_Key, 0x01, 8);
48   addKey("2", Two_Key, 0x02, 8);
49   addKey("3", Three_Key, 0x03, 8);
50   addKey("4", Four_Key, 0x04, 8);
51   addKey("5", Five_Key, 0x05, 8);
52   addKey("6", Six_Key, 0x06, 8);
53   addKey("7", Seven_Key, 0x07, 8);
54   addKey("8", Eight_Key, 0x08, 8);
55   addKey("9", Nine_Key, 0x09, 8);
56   addKey("0", Zero_Key, 0x00, 8);
57   addKey("LIGHT-", Unmapped_Key, 0x13, 8);
58   addKey("LIGHT+", Unmapped_Key, 0x12, 8);
59   addKey("COLOR-", Unmapped_Key, 0x15, 8);
60   addKey("COLOR+", Unmapped_Key, 0x14, 8);
61   addKey("CONTRAST-", Unmapped_Key, 0x1D, 8);
62   addKey("CONTRAST+", Unmapped_Key, 0x1C, 8);
63   addKey("VOLUME-", VolumeDown_Key, 0x11, 8);
64   addKey("VOLUME+", VolumeUp_Key, 0x10, 8);
65   addKey("->*", Unmapped_Key, 0x1E, 8);
66   addKey("AV", Input_Key, 0x38, 8);
67   addKey("-/--", Unmapped_Key, 0x0A, 8);
68   addKey("TV_STATUS", Info_Key, 0x0F, 8);
69   addKey("SLEEP", Sleep_Key, 0x26, 8);
70   addKey("P<P", Unmapped_Key, 0x22, 8);
71   addKey("->*<-PP", Unmapped_Key, 0x0E, 8);
72   addKey("P-", ChannelDown_Key, 0x21, 8);
73   addKey("P+", ChannelUp_Key, 0x20, 8);
74   addKey("MUTE", Mute_Key, 0x0D, 8);
75   addKey("ON-OFF", Power_Key, 0x0C, 8);
76 }