2 #include "protocols/rc5protocol.h"
4 AnitechTV1::AnitechTV1(
11 addControlledDevice(Anitech_Make, "M 3740", TV_Device);
15 void AnitechTV1::populateProtocol(
18 if (threadableProtocol)
20 // Keyset already populated.
24 threadableProtocol = new RC5Protocol(guiObject, index);
26 addKey("SLEEP", Sleep_Key, 0x1026, 13);
27 addKey("POWER", Power_Key, 0x100C, 13);
28 addKey("MUTE", Mute_Key, 0x100D, 13);
29 addKey("DISPLAY", Info_Key, 0x100F, 13);
30 addKey("CH_UP", ChannelUp_Key, 0x1020, 13);
31 addKey("CH_DOWN", ChannelDown_Key, 0x1021, 13);
32 addKey("VOL_UP", VolumeUp_Key, 0x1010, 13);
33 addKey("VOL_DOWN", VolumeDown_Key, 0x1011, 13);
37 AnitechVCR1::AnitechVCR1(
47 void AnitechVCR1::populateProtocol(
50 if (threadableProtocol)
52 // Keyset already populated.
56 threadableProtocol = new RC5Protocol(guiObject, index);
58 addKey("POWER", Power_Key, 0x114C, 13);
59 addKey("M", Unmapped_Key, 0x117B, 13);
60 addKey("KEY", Unmapped_Key, 0x017F, 13);
61 addKey("1", One_Key, 0x1141, 13);
62 addKey("2", Two_Key, 0x1142, 13);
63 addKey("+", Right_Key, 0x1160, 13); // bit of a hack
64 addKey("3", Three_Key, 0x1143, 13);
65 addKey("4", Four_Key, 0x1144, 13);
66 addKey("5", Five_Key, 0x1145, 13);
67 addKey("6", Six_Key, 0x1146, 13);
68 addKey("-", Left_Key, 0x1161, 13); // another hack
69 addKey("7", Seven_Key, 0x1147, 13);
70 addKey("8", Eight_Key, 0x1148, 13);
71 addKey("9", Nine_Key, 0x1149, 13);
72 addKey("-/--", DoubleDigit_Key, 0x114A, 13);
73 addKey("0", Zero_Key, 0x1140, 13);
74 addKey("X", Unmapped_Key, 0x1171, 13);
75 addKey("CLOCK", Clock_Key, 0x115D, 13);
76 addKey("REC", Record_Key, 0x1177, 13);
77 addKey("TREC", RecordTimed_Key, 0x1167, 13);
78 addKey("REV_PLAY", Unmapped_Key, 0x116F, 13);
79 addKey("REWIND", Rewind_Key, 0x116C, 13);
80 addKey("PLAY", Play_Key, 0x1175, 13);
81 addKey("FWD", FastForward_Key, 0x116E, 13);
82 addKey("SLOW", Slow_Key, 0x114E, 13);
83 addKey("N", Unmapped_Key, 0x116A, 13);
84 addKey("STOP", Stop_Key, 0x1176, 13);
85 addKey("PAUSE", Pause_Key, 0x1169, 13);