2 #include "protocols/necprotocol.h"
4 ToshibaTV1::ToshibaTV1(
11 addControlledDevice(Toshiba_Make, "21S03D", TV_Device);
15 void ToshibaTV1::populateProtocol(
18 if (threadableProtocol)
20 // If the pointer is not null, the keyset must already be populated.
24 threadableProtocol = new NECProtocol(guiObject, index, false, true);
26 // setPreData(0x02FD, 16);
29 addKey("0", Zero_Key, 0x00, 8);
30 addKey("1", One_Key, 0x01, 8);
31 addKey("2", Two_Key, 0x02, 8);
32 addKey("3", Three_Key, 0x03, 8);
33 addKey("4", Four_Key, 0x04, 8);
34 addKey("5", Five_Key, 0x05, 8);
35 addKey("6", Six_Key, 0x06, 8);
36 addKey("7", Seven_Key, 0x07, 8);
37 addKey("8", Eight_Key, 0x08, 8);
38 addKey("9", Nine_Key, 0x09, 8);
39 addKey("100", PlusOneHundred_Key, 0x0A, 8);
40 addKey("-/--", DoubleDigit_Key, 0x0B, 8);
41 addKey("reset", Reset_Key, 0x0C, 8);
42 addKey("tv/video", Unmapped_Key, 0x0F, 8); // "input"
43 addKey("MUTE", Mute_Key, 0x10, 8);
44 addKey("picturepref", PictureMode_Key, 0x11, 8); // "Contrast", "PP"
45 addKey("POWER", Power_Key, 0x12, 8);
46 addKey("mts", Audio_Key, 0x13, 8); // "audio_stereo_2channel"
47 addKey("SCART", Input_Key, 0x14, 8); // "AV", "inputs", "source"
48 addKey("sleep", Sleep_Key, 0x15, 8);
49 addKey("CALL", Call_Key, 0x16, 8);
50 addKey("ent", Enter_Key, 0x17, 8); // "ch_rtn"
51 addKey("fav+", Unmapped_Key, 0x19, 8);
52 addKey("V+", VolumeUp_Key, 0x1A, 8);
53 addKey("V+", Right_Key, 0x1A, 8);
54 addKey("P+", ChannelUp_Key, 0x1B, 8);
55 addKey("P+", Up_Key, 0x1B, 8);
56 addKey("recall", PrevChannel_Key, 0x1C, 8);
57 addKey("fav-", Unmapped_Key, 0x1D, 8);
58 addKey("V-", VolumeDown_Key, 0x1E, 8);
59 addKey("V-", Left_Key, 0x1E, 8);
60 addKey("P-", ChannelDown_Key, 0x1F, 8);
61 addKey("P-", Down_Key, 0x1F, 8);
62 addKey("OK", Select_Key, 0x21, 8);
63 addKey("POP_DIR", Unmapped_Key, 0x26, 8);
64 addKey("a/d", Unmapped_Key, 0x44, 8);
65 addKey("RED", Red_Key, 0x48, 8);
66 addKey("GREEN", Green_Key, 0x49, 8);
67 addKey("YELLOW", Yellow_Key, 0x4A, 8);
68 addKey("pip_ch_up", PIPChannelUp_Key, 0x4A, 8); // Yellow
69 addKey("BLUE", Blue_Key, 0x4B, 8);
70 addKey("pip_ch_down", PIPChannelDown_Key, 0x4B, 8); // Blue
71 addKey("still", PIPPause_Key, 0x4C, 8);
72 addKey("locate", PIPMove_Key, 0x4E, 8);
73 addKey("source", PIPSource_Key, 0x4F, 8);
74 addKey("pip", PIP_Key, 0x51, 8);
75 addKey("swap", PIPSwap_Key, 0x53, 8); // Reduce
76 addKey("PIC_SIZE", AspectRatio_Key, 0x54, 8); // "16:9"
77 addKey("Tone", Unmapped_Key, 0x55, 8);
78 addKey("cap/text", Captions_Key, 0x57, 8); // Image
79 addKey("exit", Exit_Key, 0x58, 8);
80 addKey("SIZE", AspectRatio_Key, 0x59, 8); // "WIDE"
81 addKey("DOULBY", NoiseReduction_Key, 0x5A, 8);
82 addKey("MENU", Menu_Key, 0x5B, 8);
83 addKey("1/2", Unmapped_Key, 0x63, 8); // "cap1/cap2"
84 addKey("CLOCK", Timer_Key, 0x71, 8); // "TIMER"
85 addKey("TV", Unmapped_Key, 0x72, 8);
86 addKey("SEARCH", Unmapped_Key, 0x8F, 8);
87 addKey("favorite", Favorites_Key, 0x90, 8);
88 addKey("multi", Unmapped_Key, 0x91, 8);
89 addKey("info", Info_Key, 0x93, 8);
93 ToshibaTV1a::ToshibaTV1a(
97 setKeysetName("TV Keyset 1a");
99 addControlledDevice(Toshiba_Make, "27A51", TV_Device);
103 void ToshibaTV1a::populateProtocol(
106 if (threadableProtocol)
108 // If the pointer is not null, the keyset must already be populated.
112 ToshibaTV1::populateProtocol(guiObject);
114 addKey("menu/enter", Menu_Key, 0x80, 8);
115 addKey("menu/enter", Select_Key, 0x80, 8);
119 ToshibaTV1b::ToshibaTV1b(
123 setKeysetName("TV Keyset 1b");
127 void ToshibaTV1b::populateProtocol(
130 if (threadableProtocol)
132 // If the pointer is not null, the keyset must already be populated.
136 ToshibaTV1::populateProtocol(guiObject);
138 addKey("right", Right_Key, 0x19, 8); // "fav+"
139 addKey("left", Left_Key, 0x1D, 8); // "fav-"
140 addKey("menu/enter", Menu_Key, 0x80, 8);
141 addKey("menu/enter", Select_Key, 0x80, 8);
142 addKey("up", Up_Key, 0x82, 8); // "set+"
143 addKey("down", Down_Key, 0x83, 8); // "set-"
147 ToshibaTV1c::ToshibaTV1c(
151 setKeysetName("TV Keyset 1c");
155 void ToshibaTV1c::populateProtocol(
158 if (threadableProtocol)
160 // If the pointer is not null, the keyset must already be populated.
164 ToshibaTV1f::populateProtocol(guiObject);
166 addKey("textzoom", TeletextSize_Key, 0x0D, 8); // "Enlarge"
167 addKey("texttime", TeletextTime_Key, 0x15, 8);
168 addKey("TXT/MIX", Teletext_Key, 0x17, 8); // "teletext"
169 addKey("textindex", TeletextIndex_Key, 0x2B, 8);
170 addKey("textpages", Unmapped_Key, 0x2C, 8);
171 addKey("texthold", TeletextHold_Key, 0x53, 8);
172 addKey("textanswer", TeletextReveal_Key, 0x54, 8);
173 addKey("pipswap", PIPSwap_Key, 0x58, 8);
177 ToshibaTV1d::ToshibaTV1d(
181 setKeysetName("TV Keyset 1d");
185 void ToshibaTV1d::populateProtocol(
188 if (threadableProtocol)
190 // If the pointer is not null, the keyset must already be populated.
194 ToshibaTV1f::populateProtocol(guiObject);
196 addKey("subtitle", Captions_Key, 0x0C, 8);
197 addKey("page+", PageDown_Key, 0x0D,8);
198 addKey("24+", Unmapped_Key, 0x15, 8);
199 addKey("Up", Up_Key, 0x19, 8);
200 addKey("Down", Down_Key, 0x1D, 8);
201 addKey("Right", Right_Key, 0x40, 8);
202 addKey("Left", Left_Key, 0x42, 8);
203 addKey("guide", Guide_Key, 0x45, 8);
204 addKey("tv/fav/radio", Favorites_Key, 0x47, 8); // might be wrong
205 addKey("page-", PageUp_Key, 0x53, 8);
206 addKey("24-", Unmapped_Key, 0x54, 8);
210 ToshibaTV1e::ToshibaTV1e(
214 setKeysetName("TV Keyset 1e");
218 void ToshibaTV1e::populateProtocol(
221 if (threadableProtocol)
223 // If the pointer is not null, the keyset must already be populated.
227 ToshibaTV1::populateProtocol(guiObject);
229 addKey("SKIPPREV", Previous_Key, 0x11, 8);
230 addKey("FFWD", FastForward_Key, 0x2A, 8);
231 addKey("STOP", Stop_Key, 0x40, 8);
232 addKey("frev", Rewind_Key, 0x4B, 8);
233 addKey("PLAY", Play_Key, 0x51, 8);
234 addKey("SKIPNEXT", Next_Key, 0x53, 8);
238 ToshibaTV1f::ToshibaTV1f(
242 setKeysetName("TV Keyset 1f");
244 addControlledDevice(Toshiba_Make, "Regza AV50*", TV_Device);
248 void ToshibaTV1f::populateProtocol(
251 if (threadableProtocol)
253 // If the pointer is not null, the keyset must already be populated.
257 ToshibaTV1::populateProtocol(guiObject);
259 addKey("info", Info_Key, 0x16, 8);
260 addKey("stillpicture", Pause_Key, 0x22, 8);
261 addKey("exit", Exit_Key, 0x43, 8);
262 addKey("back", PrevChannel_Key, 0x52, 8); // "Double_Arrow", "swap"
266 ToshibaTV1g::ToshibaTV1g(
270 setKeysetName("TV Keyset 1g");
274 void ToshibaTV1g::populateProtocol(
277 if (threadableProtocol)
279 // If the pointer is not null, the keyset must already be populated.
283 ToshibaTV1::populateProtocol(guiObject);
285 addKey("menu", Menu_Key, 0x80, 8);
286 addKey("set+", Right_Key, 0x82, 8);
287 addKey("set-", Left_Key, 0x83, 8);
288 addKey("enter", Select_Key, 0x89, 8);
292 ToshibaTV1h::ToshibaTV1h(
296 setKeysetName("TV Keyset 1h");
300 void ToshibaTV1h::populateProtocol(
303 if (threadableProtocol)
305 // If the pointer is not null, the keyset must already be populated.
309 ToshibaTV1b::populateProtocol(guiObject);
311 addKey("last (prev ch)", PrevChannel_Key, 0x17, 8);
312 addKey("program guide", Guide_Key, 0x1C, 8);
313 addKey("pip on/off", PIP_Key, 0x54, 8);
317 ToshibaVCR1::ToshibaVCR1(
327 void ToshibaVCR1::populateProtocol(
330 if (threadableProtocol)
332 // If the pointer is not null, the keyset must already be populated.
336 threadableProtocol = new NECProtocol(guiObject, index, false, true);
340 addKey("1", One_Key, 0x01, 8);
341 addKey("2", Two_Key, 0x02, 8);
342 addKey("3", Three_Key, 0x03, 8);
343 addKey("4", Four_Key, 0x04, 8);
344 addKey("5", Five_Key, 0x05, 8);
345 addKey("6", Six_Key, 0x06, 8);
346 addKey("7", Seven_Key, 0x07, 8);
347 addKey("8", Eight_Key, 0x08, 8);
348 addKey("9", Nine_Key, 0x09, 0);
349 addKey("0", Zero_Key, 0x0A, 8);
350 addKey("100", PlusOneHundred_Key, 0x0B, 8);
351 addKey("slow/dir_fwd", StepForward_Key, 0x0D, 8);
352 addKey("pause", Pause_Key, 0x10, 8);
353 addKey("tv/vcr", Input_Key, 0x11, 8);
354 addKey("power", Power_Key, 0x12, 8);
355 addKey("ff", FastForward_Key, 0x13, 8);
356 addKey("stop", Stop_Key, 0x14, 8);
357 addKey("play", Play_Key, 0x15, 8);
358 addKey("record", Record_Key, 0x18, 8);
359 addKey("rew", Rewind_Key, 0x19, 8);
360 addKey("ch+", ChannelUp_Key, 0x1B, 8);
361 addKey("ch-", ChannelDown_Key, 0x1F, 8);
362 addKey("input", Input_Key, 0x5F, 8);
363 addKey("recall", PrevChannel_Key, 0x83, 8);
364 addKey("skip", Next_Key, 0x9E, 8);
365 addKey("previous", Previous_Key, 0x9F, 8);
366 addKey("eject", Eject_Key, 0xF5, 8);
370 ToshibaVCR1a::ToshibaVCR1a(
374 setKeysetName("VCR Keyset 1a");
378 void ToshibaVCR1a::populateProtocol(
381 if (threadableProtocol)
383 // If the pointer is not null, the keyset must already be populated.
387 ToshibaVCR1::populateProtocol(guiObject);
389 addKey("ch+", ChannelUp_Key, 0x1E, 8);
390 // addKey("ch-", ChannelDown_Key, 0x1F, 8); // Already in parent
394 ToshibaDisc1::ToshibaDisc1(
404 void ToshibaDisc1::populateProtocol(
407 if (threadableProtocol)
409 // If the pointer is not null, the keyset must already be populated.
413 threadableProtocol = new NECProtocol(guiObject, index, false, true);
415 // setPreData(0xA25D, 16);
418 addKey("pause", Pause_Key, 0x00, 8);
419 addKey("1", One_Key, 0x01, 8);
420 addKey("2", Two_Key, 0x02, 8);
421 addKey("3", Three_Key, 0x03, 8);
422 addKey("4", Four_Key, 0x04, 8);
423 addKey("5", Five_Key, 0x05, 8);
424 addKey("6", Six_Key, 0x06, 8);
425 addKey("7", Seven_Key, 0x07, 8);
426 addKey("8", Eight_Key, 0x08, 8);
427 addKey("9", Nine_Key, 0x09, 8);
428 addKey("0", Zero_Key, 0x0A, 8);
429 addKey("slow/dir-fwd", StepForward_Key, 0x0D, 8);
430 addKey("slow/dir-rev", StepBack_Key, 0x0E, 8);
431 addKey("power", Power_Key, 0x12, 8);
432 addKey("ff", FastForward_Key, 0x13, 8);
433 addKey("stop", Stop_Key, 0x14, 8);
434 addKey("play", Play_Key, 0x15, 8);
435 addKey("display", Info_Key, 0x16, 8);
436 addKey("rew", Rewind_Key, 0x19, 8);
437 addKey("menu/enter", Menu_Key, 0x21, 8); // "ok", "enter"
438 addKey("menu/enter", Select_Key, 0x21, 8); // "ok", "enter"
439 addKey("exit", Exit_Key, 0x22, 8);
440 addKey("skip-", Previous_Key, 0x23, 8);
441 addKey("skip+", Next_Key, 0x24, 8);
442 addKey("+10", DoubleDigit_Key, 0x25, 8);
443 addKey("100", PlusOneHundred_Key, 0x25, 8);
444 addKey("T", Unmapped_Key, 0x26, 8); // "Index", direct access to title by number
445 addKey("SUBTITLE", Captions_Key, 0x28, 8);
446 addKey("KEY_ANGLE", Angle_Key, 0x29, 8);
447 addKey("MEMORY", Program_Key, 0x2A, 8);
448 addKey("REPEAT", Repeat_Key, 0x2B, 8);
449 addKey("A-B_RPT", RepeatAB_Key, 0x2C, 8);
450 addKey("RANDOM", Random_Key, 0x2E, 8);
451 addKey("FL_DIMMER", Unmapped_Key, 0x41, 8); // "FlDim"
452 addKey("3D", Unmapped_Key, 0x43, 8);
453 addKey("disc", NextDisc_Key, 0x4A, 8); // "DISC SELECT"
454 addKey("vol+", VolumeUp_Key, 0x4D, 8);
455 addKey("right", Right_Key, 0x4D, 8); // "vol+"
456 addKey("vol-", VolumeDown_Key, 0x51, 8);
457 addKey("left", Left_Key, 0x51, 8); // "vol-"
458 addKey("ch+", ChannelUp_Key, 0x80, 8);
459 addKey("up", Up_Key, 0x80, 8); // "ch+"
460 addKey("ch-", ChannelDown_Key, 0x81, 8);
461 addKey("down", Down_Key, 0x81, 8); // "ch-"
462 addKey("menu", DiscMenu_Key, 0x84, 8);
463 addKey("FlSelect", Unmapped_Key, 0xD7, 8);
464 addKey("top_menu", DiscTitle_Key, 0xDE, 8); // "title"
465 addKey("clear", Clear_Key, 0xEF, 8);
466 addKey("eject", Eject_Key, 0xF5, 8);
470 ToshibaDisc1a::ToshibaDisc1a(
472 : ToshibaDisc1(index)
474 setKeysetName("Disc Keyset 1a");
478 void ToshibaDisc1a::populateProtocol(
481 if (threadableProtocol)
483 // If the pointer is not null, the keyset must already be populated.
487 ToshibaDisc1::populateProtocol(guiObject);
489 addKey("setup", Menu_Key, 0x20, 8);
490 addKey("audio", Audio_Key, 0x27, 8);
491 addKey("action", Unmapped_Key, 0x84, 8);
496 ToshibaDisc1b::ToshibaDisc1b(
498 : ToshibaDisc1(index)
500 setKeysetName("Disc Keyset 1b");
504 void ToshibaDisc1b::populateProtocol(
507 if (threadableProtocol)
509 // If the pointer is not null, the keyset must already be populated.
513 ToshibaDisc1::populateProtocol(guiObject);
515 addKey("enter", Select_Key, 0x84, 8);
516 addKey("mark", Unmapped_Key, 0x21, 8);
520 ToshibaDisc1c::ToshibaDisc1c(
522 : ToshibaDisc1a(index)
524 setKeysetName("Disc Keyset 1c");
528 void ToshibaDisc1c::populateProtocol(
531 if (threadableProtocol)
533 // If the pointer is not null, the keyset must already be populated.
537 ToshibaDisc1a::populateProtocol(guiObject);
539 addKey("KEY_DVD", Unmapped_Key, 0x22, 8);
540 addKey("KEY_SLOW", Slow_Key, 0x26, 8);
541 addKey("KEY_FAVORITES", Favorites_Key, 0xDE, 8);
542 addKey("KEY_EJECTCD", Eject_Key, 0xDF, 8);
546 ToshibaDisc1d::ToshibaDisc1d(
548 : ToshibaDisc1a(index)
550 setKeysetName("Disc Keyset 1d");
554 void ToshibaDisc1d::populateProtocol(
557 if (threadableProtocol)
559 // If the pointer is not null, the keyset must already be populated.
563 ToshibaDisc1a::populateProtocol(guiObject);
565 addKey("recall", PrevChannel_Key, 0x16, 8);