2 #include "sharpprotocol.h"
12 threadableProtocol = new SharpProtocol(guiObject, index, true);
14 addSharpKey("1", One_Key, 0x01, 0x01);
15 addSharpKey("2", Two_Key, 0x01, 0x02);
16 addSharpKey("3", Three_Key, 0x01, 0x03);
17 addSharpKey("4", Four_Key, 0x01, 0x04);
18 addSharpKey("5", Five_Key, 0x01, 0x05);
19 addSharpKey("6", Six_Key, 0x01, 0x06);
20 addSharpKey("7", Seven_Key, 0x01, 0x07);
21 addSharpKey("8", Eight_Key, 0x01, 0x08);
22 addSharpKey("9", Nine_Key, 0x01, 0x09);
23 addSharpKey("0", Zero_Key, 0x01, 0x0A);
24 addSharpKey("100", PlusOneHundred_Key, 0x01, 0x0B);
25 addSharpKey("stereo", Unmapped_Key, 0x01, 0x0C); // "VpsPds"
26 addSharpKey("40+", Unmapped_Key, 0x01, 0x0F); // odd!
28 addSharpKey("NR", Unmapped_Key, 0x01, 0x10);
29 addSharpKey("CH_UP", ChannelUp_Key, 0x01, 0x11);
30 addSharpKey("CH_DOWN", ChannelDown_Key, 0x01, 0x12);
31 addSharpKey("TV/VIDEO", Input_Key, 0x01, 0x13);
32 addSharpKey("VOL_UP", VolumeUp_Key, 0x01, 0x14);
33 addSharpKey("VOL_DOWN", VolumeDown_Key, 0x01, 0x15);
34 addSharpKey("POWER", Power_Key, 0x01, 0x16);
35 addSharpKey("MUTE", Mute_Key, 0x01, 0x17); // "VOLUME_KILL"
36 addSharpKey("SOUND_MODE", Audio_Key, 0x01, 0x18); // I/II/I+II
37 addSharpKey("program_timer", Timer_Key, 0x01, 0x19); // "on_timer"
38 addSharpKey("TIMER", Sleep_Key, 0x01, 0x1A);
39 addSharpKey("INFO", Info_Key, 0x01, 0x1B); // "disp_del" "TEXT"
40 addSharpKey("TIME", TeletextTime_Key, 0x01, 0x1C);
41 addSharpKey("PROG", Program_Key, 0x01, 0x1D);
43 addSharpKey("PICTURE_NORMALIZE", Unmapped_Key, 0x01, 0x21);
44 addSharpKey("CONTRAST_UP", Unmapped_Key, 0x01, 0x22);
45 addSharpKey("CONTRAST_DOWN", Unmapped_Key, 0x01, 0x23);
46 addSharpKey("COLOR_UP", Unmapped_Key, 0x01, 0x24);
47 addSharpKey("COLOR_DOWN", Unmapped_Key, 0x01, 0x25);
48 addSharpKey("SOUND_NORMALIZE", Unmapped_Key, 0x01, 0x26);
49 addSharpKey("BRIGHTNESS_UP", Unmapped_Key, 0x01, 0x28);
50 addSharpKey("BRIGHTNESS_DOWN", Unmapped_Key, 0x01, 0x29);
51 addSharpKey("CH_SWAP", PrevChannel_Key, 0x01, 0x27); // "FLASHBACK", "ret"
52 addSharpKey("MONO", Unmapped_Key, 0x01, 0x2C);
53 addSharpKey("BROWSE", Unmapped_Key, 0x01, 0x2F);
54 addSharpKey("10+", Unmapped_Key, 0x01, 0x2F);
56 addSharpKey("20+", Unmapped_Key, 0x01, 0x30);
57 addSharpKey("30+", Unmapped_Key, 0x01, 0x31);
58 addSharpKey("PICTURE", Unmapped_Key, 0x01, 0x32);
59 addSharpKey("HOLD", TeletextHold_Key, 0x01, 0x33);
60 addSharpKey("TELETEXT", Teletext_Key, 0x01, 0x34);
61 // addSharpKey("SINGLE_DOUBLE", DoubleDigit_Key, 0x01, 0x35);
62 addSharpKey("PROGRAM", Program_Key, 0x01, 0x36);
63 addSharpKey("TOP_BOTTOM_FULL", TeletextSize_Key, 0x01, 0x37);
64 addSharpKey("REVEAL", TeletextReveal_Key, 0x01, 0x38);
65 addSharpKey("message", Unmapped_Key, 0x01, 0x3B);
66 addSharpKey("./..", DoubleDigit_Key, 0x01, 0x3C);
67 addSharpKey("p/c", Unmapped_Key, 0x01, 0x3D);
69 addSharpKey("pr", Unmapped_Key, 0x01, 0x41);
70 addSharpKey("COLOR_RED", Red_Key, 0x01, 0x48);
71 addSharpKey("COLOR_GREEN", Green_Key, 0x01, 0x49);
72 addSharpKey("COLOR_YELLOW", Yellow_Key, 0x01, 0x4A);
73 addSharpKey("COLOR_BLUE", Blue_Key, 0x01, 0x4B);
74 addSharpKey("INDEX", Unmapped_Key, 0x01, 0x4C);
75 addSharpKey("MENU", Menu_Key, 0x01, 0x4D);
76 addSharpKey("LOCK", Unmapped_Key, 0x01, 0x51);
77 addSharpKey("RESET", Reset_Key, 0x01, 0x52);
78 addSharpKey("FUNCTIONS", Unmapped_Key, 0x01, 0x5F);
80 addSharpKey("PICTURE", PictureMode_Key, 0x01, 0x60);
81 addSharpKey("SOUND", SoundMode_Key, 0x01, 0x61);
82 addSharpKey("TREBLE_UP", Unmapped_Key, 0x01, 0x62);
83 addSharpKey("TREBLE_DOWN", Unmapped_Key, 0x01, 0x63);
84 addSharpKey("BASS_UP", Unmapped_Key, 0x01, 0x64);
85 addSharpKey("BASS_DOWN", Unmapped_Key, 0x01, 0x65);
86 addSharpKey("WOOFER_UP", Unmapped_Key, 0x01, 0x66);
87 addSharpKey("WOOFER_DOWN", Unmapped_Key, 0x01, 0x67);
88 addSharpKey("BALANCE_LEFT", Unmapped_Key, 0x01, 0x6B);
89 addSharpKey("BALANCE_RIGHT", Unmapped_Key, 0x01, 0x6C);
90 addSharpKey("SURROUND", Surround_Key, 0x01, 0x6E);
92 addSharpKey("calendar", Unmapped_Key, 0x01, 0x76);
93 addSharpKey("language", Audio_Key, 0x01, 0x78);
94 addSharpKey("BT_END", Unmapped_Key, 0x01, 0xF5);
95 addSharpKey("AV_MODE", Unmapped_Key, 0x01, 0xF8);
97 addSharpKey("AV-", Unmapped_Key, 0x11, 0x73); // reverse-direction input
98 addSharpKey("DTV", Unmapped_Key, 0x11, 0xA0);
99 addSharpKey("DTV_MENU", Unmapped_Key, 0x11, 0xA1);
100 addSharpKey("LIST", Unmapped_Key, 0x11, 0xA2);
101 addSharpKey("RADIO", Unmapped_Key, 0x11, 0xA4);
102 addSharpKey("ESG", Unmapped_Key, 0x11, 0xA7);
103 addSharpKey("WIDE_MODES", AspectRatio_Key, 0x11, 0xC8);
104 addSharpKey("TRUD", Unmapped_Key, 0x11, 0xDD);
105 addSharpKey("ACTION", Unmapped_Key, 0x11, 0xF9);
107 addSharpKey("BACKLIGHT", Unmapped_Key, 0x1E, 0x8B); // "OPC"
108 addSharpKey("ROTATE", Unmapped_Key, 0x1E, 0x8C);
109 addSharpKey("SUBTITLE", Captions_Key, 0x1E, 0x9F);
110 addSharpKey("SUBPAGE", Unmapped_Key, 0x1E, 0xCD);
114 SharpTV1a::SharpTV1a(
117 : SharpTV1(guiObject, index)
119 setKeysetName("TV Keyset 1a");
121 addSharpKey("Key", Unmapped_Key, 0x01, 0x0D);
122 addSharpKey("Time", Sleep_Key, 0x01, 0x0E);
123 addSharpKey("Replay", Replay_Key, 0x01, 0x10);
124 addSharpKey("TapeSpeed", VHSSpeed_Key, 0x01, 0x1F);
125 addSharpKey("FF", FastForward_Key, 0x01, 0x21);
126 addSharpKey("Play", Play_Key, 0x01, 0x22);
127 addSharpKey("REW", Rewind_Key, 0x01, 0x23);
128 addSharpKey("Pause", Pause_Key, 0x01, 0x25);
129 addSharpKey("Stop", Stop_Key, 0x01, 0x27);
130 addSharpKey("REC", Record_Key, 0x01, 0x28);
131 addSharpKey("Slow", Slow_Key, 0x01, 0x29);
132 addSharpKey("DPSS+", Unmapped_Key, 0x01, 0x2F);
134 addSharpKey("DPSS-", Unmapped_Key, 0x01, 0x30);
135 addSharpKey("Input", Input_Key, 0x01, 0x34);
136 addSharpKey("ZeroBack", Unmapped_Key, 0x01, 0x83);
137 addSharpKey("SkipSearch", Advance_Key, 0x01, 0x90);
141 SharpTV1b::SharpTV1b(
144 : SharpTV1(guiObject, index)
146 setKeysetName("TV Keyset 1b");
148 addSharpKey("FINE_TUNING", Unmapped_Key, 0x01, 0x0E);
149 addSharpKey("chScan", Scan_Key, 0x01, 0x1C);
150 addSharpKey("setup", Menu_Key, 0x01, 0x20);
151 addSharpKey("fback_clr", Unmapped_Key, 0x01, 0x2F);
152 addSharpKey("BLUE_BACK", Unmapped_Key, 0x01, 0x3B);
153 addSharpKey("SKIP", Unmapped_Key, 0x01, 0x47);
154 addSharpKey("video", Input_Key, 0x01, 0x49);
155 addSharpKey("plus", Up_Key, 0x01, 0x4F); // "UP"
156 addSharpKey("minus", Down_Key, 0x01, 0x50); // "DOWN"
157 addSharpKey("TIMER", Timer_Key, 0x01, 0x53);
158 addSharpKey("SYSTEM_SOUND", SoundMode_Key, 0x01, 0x6F);
159 addSharpKey("SYSTEM_COLOUR", PictureMode_Key, 0x01, 0x71);
163 SharpTV1c::SharpTV1c(
166 : SharpTV1(guiObject, index)
168 setKeysetName("TV Keyset 1c");
170 addSharpKey("save_ch", Unmapped_Key, 0x01, 0x41);
171 addSharpKey("del_ch", Unmapped_Key, 0x01, 0x3D);
175 SharpTV1d::SharpTV1d(
178 : SharpTV1(guiObject, index)
180 setKeysetName("TV Keyset 1d");
182 addSharpKey("P-MODE", PictureMode_Key, 0x01, 0x4D);
183 addSharpKey("S-MODE", SoundMode_Key, 0x01, 0x26);
187 SharpTV1e::SharpTV1e(
190 : SharpTV1(guiObject, index)
192 setKeysetName("TV Keyset 1e");
194 addSharpKey("DOWN", Down_Key, 0x01, 0x20);
195 addSharpKey("OK", Select_Key, 0x01, 0x52);
196 addSharpKey("UP", Up_Key, 0x01, 0x57);
197 addSharpKey("LEFT", Left_Key, 0x01, 0xD7);
198 addSharpKey("RIGHT", Right_Key, 0x01, 0xD8);
199 addSharpKey("RETURN", Exit_Key, 0x01, 0xE4);
201 addSharpKey("MENU", Menu_Key, 0x11, 0xC6);
205 SharpVCR1::SharpVCR1(
213 threadableProtocol = new SharpProtocol(guiObject, index, true);
215 addSharpKey("1", One_Key, 0x03, 0x01);
216 addSharpKey("2", Two_Key, 0x03, 0x02);
217 addSharpKey("3", Three_Key, 0x03, 0x03);
218 addSharpKey("4", Four_Key, 0x03, 0x04);
219 addSharpKey("5", Five_Key, 0x03, 0x05);
220 addSharpKey("6", Six_Key, 0x03, 0x06);
221 addSharpKey("7", Seven_Key, 0x03, 0x07);
222 addSharpKey("8", Eight_Key, 0x03, 0x08);
223 addSharpKey("9", Nine_Key, 0x03, 0x09);
224 addSharpKey("0", Zero_Key, 0x03, 0x0A);
225 addSharpKey("./..", DoubleDigit_Key, 0x03, 0x0B);
226 addSharpKey("Display", Info_Key, 0x03, 0x0C); // "vps"
227 addSharpKey("Key", Unmapped_Key, 0x03, 0x0D); // "C-LOCK", "tamper_proof"
228 addSharpKey("TIME", Unmapped_Key, 0x03, 0x0E);
229 addSharpKey("REC_TIME", Unmapped_Key, 0x03, 0x0F); // "TIME-0"
230 addSharpKey("repeat", Repeat_Key, 0x03, 0x10);
231 addSharpKey("ChnUp", ChannelUp_Key, 0x03, 0x11);
232 addSharpKey("ChnDn", ChannelDown_Key, 0x03, 0x12);
233 addSharpKey("TV/VCR", Unmapped_Key, 0x03, 0x13);
234 addSharpKey("Power", Power_Key, 0x03, 0x16);
235 addSharpKey("MUTE", Mute_Key, 0x03, 0x17);
236 addSharpKey("AudioOut", Surround_Key, 0x03, 0x18);
237 addSharpKey("TimerOn/Off", Unmapped_Key, 0x03, 0x19);
238 addSharpKey("osp", Unmapped_Key, 0x03, 0x1C);
239 addSharpKey("PROG", Program_Key, 0x03, 0x1D);
240 addSharpKey("TapeSpeed", VHSSpeed_Key, 0x03, 0x1F);
241 addSharpKey("Clear", Clear_Key, 0x03, 0x20);
242 addSharpKey("FF", FastForward_Key, 0x03, 0x21);
243 addSharpKey("Play", Play_Key, 0x03, 0x22);
244 addSharpKey("Rew", Rewind_Key, 0x03, 0x23);
245 addSharpKey("F.ADV", StepForward_Key, 0x03, 0x24);
246 addSharpKey("Pause", Pause_Key, 0x03, 0x25);
247 addSharpKey("Stop", Stop_Key, 0x03, 0x27);
248 addSharpKey("Rec", Record_Key, 0x03, 0x28);
249 addSharpKey("Slow", Slow_Key, 0x03, 0x29);
250 addSharpKey("CLOCK", Clock_Key, 0x03, 0x2C);
251 addSharpKey("DPSS+", SlowPlus_Key, 0x03, 0x2F); // "slow+"
252 addSharpKey("DPSS-", SlowMinus_Key, 0x03, 0x30); // "slow-"
253 addSharpKey("x2", Unmapped_Key, 0x03, 0x31);
254 addSharpKey("EJECT", Eject_Key, 0x03, 0x33);
255 addSharpKey("InputSelect", Input_Key, 0x03, 0x34); // "simul"
256 addSharpKey("SEARCH", Unmapped_Key, 0x03, 0x37);
257 addSharpKey("ZeroBack", Unmapped_Key, 0x03, 0x83); // "MEMORY"
258 addSharpKey("cancel", Unmapped_Key, 0x03, 0x84); // could be exit key
259 addSharpKey("TRACKING_UP", TrackingPlus_Key, 0x03, 0x85);
260 addSharpKey("TRACKING_DOWN", TrackingMinus_Key, 0x03, 0x86);
261 addSharpKey("100", PlusOneHundred_Key, 0x03, 0x88);
262 addSharpKey("ModeOsd", Unmapped_Key, 0x03, 0x8D);
263 addSharpKey("SkipSearch", Unmapped_Key, 0x03, 0x90);
264 addSharpKey("Menu", Menu_Key, 0x03, 0x98);
265 addSharpKey("Up", Up_Key, 0x03, 0x99);
266 addSharpKey("Set", Select_Key, 0x03, 0x9A);
267 addSharpKey("Right", Right_Key, 0x03, 0x9B);
268 addSharpKey("Dn", Down_Key, 0x03, 0x9C);
269 addSharpKey("Left", Left_Key, 0x03, 0x9D);
270 addSharpKey("SHUTTLE+1", Unmapped_Key, 0x03, 0xA0);
271 addSharpKey("SHUTTLE+2", Unmapped_Key, 0x03, 0xA2);
272 addSharpKey("SHUTTLE+3", Unmapped_Key, 0x03, 0xA4);
273 addSharpKey("SHUTTLE+4", Unmapped_Key, 0x03, 0xA6);
274 addSharpKey("SHUTTLE+5", Unmapped_Key, 0x03, 0xA8);
275 addSharpKey("SHUTTLE-1", Unmapped_Key, 0x03, 0xA9);
276 addSharpKey("SHUTTLE+6", Unmapped_Key, 0x03, 0xAA);
277 addSharpKey("SHUTTLE-2", Unmapped_Key, 0x03, 0xAB);
278 addSharpKey("SHUTTLE0", Unmapped_Key, 0x03, 0xAE);
279 addSharpKey("SV/V+/Timer", Timer_Key, 0x03, 0xC0);
283 SharpReceiver1::SharpReceiver1(
291 threadableProtocol = new SharpProtocol(guiObject, index, true);
293 addSharpKey("PRESET+", ChannelUp_Key, 0x12, 0x11);
294 addSharpKey("PRESET-", ChannelDown_Key, 0x12, 0x12);
295 addSharpKey("VOL+", VolumeUp_Key, 0x12, 0x14);
296 addSharpKey("VOL-", VolumeDown_Key, 0x12, 0x15);
297 addSharpKey("POWER", Power_Key, 0x12, 0x16);
298 addSharpKey("TUNER", Unmapped_Key, 0x12, 0x19);
299 addSharpKey("TAPE", Unmapped_Key, 0x12, 0x1A);
300 addSharpKey("CD", Unmapped_Key, 0x12, 0x1B);
301 addSharpKey("PHONO", Unmapped_Key, 0x12, 0x1D);
302 addSharpKey("X-BASS", Unmapped_Key, 0x12, 0x2E);
303 addSharpKey("FM", Unmapped_Key, 0x12, 0x32);
304 addSharpKey("LW", Unmapped_Key, 0x12, 0x33);
305 addSharpKey("MW", Unmapped_Key, 0x12, 0x34);
306 addSharpKey("SW", Unmapped_Key, 0x12, 0xCA);
308 addSharpKey("1", One_Key, 0x14, 0x01);
309 addSharpKey("2", Two_Key, 0x14, 0x02);
310 addSharpKey("3", Three_Key, 0x14, 0x03);
311 addSharpKey("4", Four_Key, 0x14, 0x04);
312 addSharpKey("5", Five_Key, 0x14, 0x05);
313 addSharpKey("6", Six_Key, 0x14, 0x06);
314 addSharpKey("7", Seven_Key, 0x14, 0x07);
315 addSharpKey("8", Eight_Key, 0x14, 0x08);
316 addSharpKey("9", Nine_Key, 0x14, 0x09);
317 addSharpKey("0", Zero_Key, 0x14, 0x0A);
318 addSharpKey("CALL", Unmapped_Key, 0x14, 0x11);
319 addSharpKey("CLEAR", Clear_Key, 0x14, 0x12);
320 addSharpKey("MEMORY", Program_Key, 0x14, 0x13);
321 addSharpKey("CUE", FastForward_Key, 0x14, 0x19);
322 addSharpKey("REVIEW", Rewind_Key, 0x14, 0x1A);
323 addSharpKey("TIME_DISPLAY", Info_Key, 0x14, 0x1B);
324 addSharpKey("RANDOM", Random_Key, 0x14, 0x1E);
325 addSharpKey("APSS+", Unmapped_Key, 0x14, 0x21);
326 addSharpKey("PLAY", Play_Key, 0x14, 0x22);
327 addSharpKey("APSS-", Unmapped_Key, 0x14, 0x23);
328 addSharpKey("PAUSE", Pause_Key, 0x14, 0x25);
329 addSharpKey("STOP", Stop_Key, 0x14, 0x27);
330 addSharpKey("REPEAT", Repeat_Key, 0x14, 0x36);
331 addSharpKey("+10", DoubleDigit_Key, 0x14, 0x38);