2 #include "protocols/sharpprotocol.h"
3 #include "protocols/rc5protocol.h"
5 AdmiralTV1::AdmiralTV1(
15 void AdmiralTV1::populateProtocol(
18 if (threadableProtocol)
20 // If the pointer is not null, the keyset must already be populated.
24 threadableProtocol = new SharpProtocol(guiObject, index, true);
26 addSharpKey("tv-1", One_Key, 0x01, 0x01);
27 addSharpKey("tv-2", Two_Key, 0x01, 0x02);
28 addSharpKey("tv-3", Three_Key, 0x01, 0x03);
29 addSharpKey("tv-4", Four_Key, 0x01, 0x04);
30 addSharpKey("tv-5", Five_Key, 0x01, 0x05);
31 addSharpKey("tv-6", Six_Key, 0x01, 0x06);
32 addSharpKey("tv-7", Seven_Key, 0x01, 0x07);
33 addSharpKey("tv-8", Eight_Key, 0x01, 0x08);
34 addSharpKey("tv-9", Nine_Key, 0x01, 0x09);
35 addSharpKey("tv-0", Zero_Key, 0x01, 0x0A);
36 addSharpKey("tv-100", PlusOneHundred_Key, 0x01, 0x0B);
38 addSharpKey("tv-+", ChannelUp_Key, 0x01, 0x11);
39 addSharpKey("tv--", ChannelDown_Key, 0x01, 0x12);
40 addSharpKey("tv-input", Input_Key, 0x01, 0x13);
41 addSharpKey("vol+", VolumeUp_Key, 0x01, 0x14);
42 addSharpKey("vol-", VolumeDown_Key, 0x01, 0x15);
43 addSharpKey("tv-power", Power_Key, 0x01, 0x16);
44 addSharpKey("mute", Mute_Key, 0x01, 0x17);
45 addSharpKey("tv-display", Info_Key, 0x01, 0x1B);
47 addSharpKey("flash", Unmapped_Key, 0x01, 0x4F);
51 AdmiralTV2::AdmiralTV2(
62 // The following is just a guess:
63 void AdmiralTV2::populateProtocol(
66 if (threadableProtocol)
68 // If the pointer is not null, the keyset must already be populated.
72 threadableProtocol = new RC5Protocol(guiObject, index);
74 addKey("0", Zero_Key, 0x1000, 13);
75 addKey("1", One_Key, 0x1001, 13);
76 addKey("2", Two_Key, 0x1002, 13);
77 addKey("3", Three_Key, 0x1003, 13);
78 addKey("4", Four_Key, 0x1004, 13);
79 addKey("5", Five_Key, 0x1005, 13);
80 addKey("6", Six_Key, 0x1006, 13);
81 addKey("7", Seven_Key, 0x1007, 13);
82 addKey("8", Eight_Key, 0x1008, 13);
83 addKey("9", Nine_Key, 0x1009, 13);
84 addKey("1-", DoubleDigit_Key, 0x100A, 13); // -/--
85 addKey("100", PlusOneHundred_Key, 0x100A, 13);
86 addKey("TV-Dash", Dash_Key, 0x100A, 13);
87 addKey("CP", Unmapped_Key, 0x100B, 13); // "C/P", "Channel/program/freq"
88 addKey("ON/OFF", Power_Key, 0x100C, 13);
89 addKey("MUTE", Mute_Key, 0x100D, 13);
90 addKey("pp", PrevChannel_Key, 0x100E, 13); // "GREEN", "Personal preference"
91 addKey("INFO", Info_Key, 0x100F, 13); // "+", "OSD"
93 addKey("VOL+", VolumeUp_Key, 0x1010, 13);
94 addKey("VOL-", VolumeDown_Key, 0x1011, 13);
95 addKey("BRIGHTNESS_UP", BrightnessUp_Key, 0x1012, 13);
96 addKey("BRIGHTNESS_DOWN", BrightnessDown_Key, 0x1013, 13);
97 addKey("CONTRAST_UP", ContrastUp_Key, 0x1014, 13);
98 addKey("CONTRAST_DOWN", ContrastDown_Key, 0x1015, 13);
99 addKey("BASS_UP", BassUp_Key, 0x1016, 13);
100 addKey("BASS_DOWN", BassDown_Key, 0x1017, 13);
101 addKey("TREBLE_UP", TrebleUp_Key, 0x1018, 13);
102 addKey("TREBLE_DOWN", TrebleDown_Key, 0x1019, 13);
103 addKey("BALANCE_RIGHT", BalanceRight_Key, 0x101A, 13);
104 addKey("BALANCE_LEFT", BalanceLeft_Key, 0x101B, 13);
106 addKey("P+", ChannelUp_Key, 0x1020, 13);
107 addKey("P-", ChannelDown_Key, 0x1021, 13);
109 addKey("PIP on/off", PIP_Key, 0x1058, 13);
110 addKey("PIP shift", PIPMove_Key, 0x1059, 13);
111 addKey("PIP/main picture swap", PIPSwap_Key, 0x105A, 13);
112 addKey("Select PIP source", PIPSource_Key, 0x105F, 13);
113 addKey("PIP Freeze", PIPPause_Key, 0x1065, 13);
114 addKey("PIP Size", PIPSize_Key, 0x1068, 13);
115 addKey("red", Red_Key, 0x106B, 13);
116 addKey("green", Green_Key, 0x106C, 13);
117 addKey("yellow", Yellow_Key, 0x106D, 13);
118 addKey("cyan", Blue_Key, 0x106E, 13);
122 AdmiralVCR1::AdmiralVCR1(
132 void AdmiralVCR1::populateProtocol(
135 if (threadableProtocol)
137 // If the pointer is not null, the keyset must already be populated.
141 threadableProtocol = new SharpProtocol(guiObject, index, true);
143 addSharpKey("vcr-1", One_Key, 0x03, 0x01);
144 addSharpKey("vcr-2", Two_Key, 0x03, 0x02);
145 addSharpKey("vcr-3", Three_Key, 0x03, 0x03);
146 addSharpKey("vcr-4", Four_Key, 0x03, 0x04);
147 addSharpKey("vcr-5", Five_Key, 0x03, 0x05);
148 addSharpKey("vcr-6", Six_Key, 0x03, 0x06);
149 addSharpKey("vcr-7", Seven_Key, 0x03, 0x07);
150 addSharpKey("vcr-8", Eight_Key, 0x03, 0x08);
151 addSharpKey("vcr-9", Nine_Key, 0x03, 0x09);
152 addSharpKey("vcr-0", Zero_Key, 0x03, 0x0A);
153 addSharpKey("child_lock", Unmapped_Key, 0x03, 0x0D);
155 addSharpKey("vcr-+", ChannelUp_Key, 0x03, 0x11);
156 addSharpKey("vcr--", ChannelDown_Key, 0x03, 0x12);
157 addSharpKey("tv/vcr", Unmapped_Key, 0x03, 0x13);
158 addSharpKey("vcr-power", Power_Key, 0x03, 0x16);
159 addSharpKey("menu", Menu_Key, 0x03, 0x1D);
160 addSharpKey("tape_speed", VHSSpeed_Key, 0x03, 0x1F);
162 addSharpKey("ff", FastForward_Key, 0x03, 0x21);
163 addSharpKey("play", Play_Key, 0x03, 0x22);
164 addSharpKey("rew", Rewind_Key, 0x03, 0x23);
165 addSharpKey("pause", Pause_Key, 0x03, 0x25);
166 addSharpKey("stop", Stop_Key, 0x03, 0x27);
167 addSharpKey("rec", Record_Key, 0x03, 0x28);
168 addSharpKey("slow", Slow_Key, 0x03, 0x29);
169 addSharpKey("dpss+", Next_Key, 0x03, 0x2F);
171 addSharpKey("dpss-", Previous_Key, 0x03, 0x30);
172 addSharpKey("eject", Eject_Key, 0x03, 0x33);
173 addSharpKey("vcr-input", Input_Key, 0x03, 0x34);
175 addSharpKey("auto_review", Unmapped_Key, 0x03, 0x83);
176 addSharpKey("cancel", Clear_Key, 0x03, 0x84);
177 addSharpKey("vcr-100", PlusOneHundred_Key, 0x03, 0x88);
178 addSharpKey("vcr-display", Info_Key, 0x03, 0x8C);
179 addSharpKey("on_screen", Unmapped_Key, 0x03, 0x8D);
181 addSharpKey("add/erase", IndexMark_Key, 0x03, 0xB5);