2 #include "protocols/sircprotocol.h"
12 addControlledDevice(Sony_Make, "KV-M1420D", TV_Device);
13 addControlledDevice(Sony_Make, "KV-20FV10", TV_Device);
14 addControlledDevice(Sony_Make, "KV-2167MT", TV_Device);
15 addControlledDevice(Sony_Make, "KV-2184MT", TV_Device);
16 addControlledDevice(Sony_Make, "KV-27FX210", TV_Device);
17 addControlledDevice(Sony_Make, "KV-32FS210", TV_Device);
18 addControlledDevice(Sony_Make, "KV-36FS210", TV_Device);
19 addControlledDevice(Sony_Make, "KV-36FS13", TV_Device);
20 addControlledDevice(Sony_Make, "KDL-23B4030", TV_Device);
21 addControlledDevice(Sony_Make, "KDL-40EX403", TV_Device);
22 addControlledDevice(Sony_Make, "KDL-40EX520", TV_Device);
23 addControlledDevice(Sony_Make, "KDL-40X2000", TV_Device);
24 addControlledDevice(Sony_Make, "KDL-52X2000", TV_Device);
25 addControlledDevice(Sony_Make, "KDL-46X2000", TV_Device);
26 addControlledDevice(Sony_Make, "KP-46WT520", TV_Device);
30 void SonyTV1::populateProtocol(
33 if (threadableProtocol)
35 // If the pointer is not null, the keyset must already be populated.
39 threadableProtocol = new SIRCProtocol(guiObject, index);
41 addSIRC12Key("1", One_Key, 0x01, 0x00);
42 addSIRC12Key("2", Two_Key, 0x01, 0x01);
43 addSIRC12Key("3", Three_Key, 0x01, 0x02);
44 addSIRC12Key("4", Four_Key, 0x01, 0x03);
45 addSIRC12Key("5", Five_Key, 0x01, 0x04);
46 addSIRC12Key("6", Six_Key, 0x01, 0x05);
47 addSIRC12Key("7", Seven_Key, 0x01, 0x06);
48 addSIRC12Key("8", Eight_Key, 0x01, 0x07);
49 addSIRC12Key("9", Nine_Key, 0x01, 0x08);
50 addSIRC12Key("0", Zero_Key, 0x01, 0x09);
51 addSIRC12Key("enter", Enter_Key, 0x01, 0x0B);
52 addSIRC12Key("1-", Unmapped_Key, 0x01, 0x0C);
53 addSIRC12Key("2-", Unmapped_Key, 0x01, 0x0D);
54 addSIRC12Key("C", Clear_Key, 0x01, 0x0E); // "C00"
55 addSIRC12Key("CHANNEL/PAGE+", ChannelUp_Key, 0x01, 0x10);
56 addSIRC12Key("CHANNEL/PAGE-", ChannelDown_Key, 0x01, 0x11);
57 addSIRC12Key("VOLUME+", VolumeUp_Key, 0x01, 0x12);
58 addSIRC12Key("VOLUME-", VolumeDown_Key, 0x01, 0x13);
59 addSIRC12Key("MUTE", Mute_Key, 0x01, 0x14);
60 addSIRC12Key("POWER", Power_Key, 0x01, 0x15);
61 addSIRC12Key("normalise", Reset_Key, 0x01, 0x16); // "reset"
62 addSIRC12Key("a/b", Audio_Key, 0x01, 0x17); // "mts", "sap", "language"
63 addSIRC12Key("picture_up", ContrastUp_Key, 0x01, 0x18); // "Contrast Up"
64 addSIRC12Key("picture_down", ContrastDown_Key, 0x1, 0x19); // "Contrast Down"
65 addSIRC12Key("-/--", DoubleDigit_Key, 0x01, 0x1D);
66 addSIRC12Key("tv/video", Input_Key, 0x01, 0x25);
67 addSIRC12Key("bucket", Unmapped_Key, 0x01, 0x28);
68 addSIRC12Key("stereo", Surround_Key, 0x01, 0x29);
69 addSIRC12Key("ANT", AntennaInput_Key, 0x01, 0x2A);
70 addSIRC12Key("time", Clock_Key, 0x01, 0x2B);
71 addSIRC12Key("timer/block", Timer_Key, 0x01, 0x30);
72 addSIRC12Key("right", Right_Key, 0x01, 0x33);
73 addSIRC12Key("left", Left_Key, 0x01, 0x34);
74 addSIRC12Key("sleep", Sleep_Key, 0x01, 0x36);
75 addSIRC12Key("TV-RETURN", Unmapped_Key, 0x01, 0x38); // "analog"
76 addSIRC12Key("?/INFO", Info_Key, 0x01, 0x3A); // Teletext Index
77 addSIRC12Key("prev_ch", PrevChannel_Key, 0x01, 0x3B); // "jump"
78 addSIRC12Key("off/repeat", Repeat_Key, 0x01, 0x3C);
79 addSIRC12Key("TELETXT", Teletext_Key, 0x01, 0x3F);
80 addSIRC12Key("favourite", Unmapped_Key, 0x01, 0x4A); // separate keyset?
81 addSIRC12Key("cable", CableInput_Key, 0x01, 0x4E);
82 addSIRC12Key("Sat", SatInput_Key, 0x01, 0x51);
83 addSIRC12Key("pip_ch+", PIPChannelUp_Key, 0x01, 0x58);
84 addSIRC12Key("pip_ch-", PIPChannelDown_Key, 0x01, 0x59);
85 addSIRC12Key("piptv_video", PIPSource_Key, 0x01, 0x5A);
86 addSIRC12Key("PIP", PIP_Key, 0x01, 0x5B);
87 addSIRC12Key("pipfreeze", PIPPause_Key, 0x01, 0x5C);
88 addSIRC12Key("PIP_POSITION", PIPMove_Key, 0x01, 0x5E);
89 addSIRC12Key("PIP_SWAP", PIPSwap_Key, 0x01, 0x5F);
90 addSIRC12Key("MENU", Menu_Key, 0x01, 0x60);
91 addSIRC12Key("Settup_V", Unmapped_Key, 0x01, 0x61); // alternate pic mode
92 addSIRC12Key("Settup_A", Unmapped_Key, 0x01, 0x62); // alternate sound mode
93 addSIRC12Key("EXIT", Exit_Key, 0x01, 0x63);
94 addSIRC12Key("picturemode", PictureMode_Key, 0x01, 0x64);
95 addSIRC12Key("OK", Select_Key, 0x01, 0x65); // "return", "select", "enter"
96 addSIRC12Key("output", Unmapped_Key, 0x01, 0x66);
97 addSIRC12Key("PIP_SOURCE", Unmapped_Key, 0x01, 0x67); // separate keyset?
98 addSIRC12Key("asterisk", Unmapped_Key, 0x01, 0x68); // "TV System"
99 addSIRC12Key("auto_program", Unmapped_Key, 0x01, 0x6B);
100 addSIRC12Key("setup", Program_Key, 0x01, 0x6C);
101 addSIRC12Key("tune_down", Unmapped_Key, 0x01, 0x6F); // "search -"
102 addSIRC12Key("tune_up", Unmapped_Key, 0x01, 0x6E); // "search +"
103 addSIRC12Key("up", Up_Key, 0x01, 0x74);
104 addSIRC12Key("down", Down_Key, 0x01, 0x75);
105 addSIRC12Key("diamond", Unmapped_Key, 0x01, 0x78); // "add"
106 addSIRC12Key("erase", Unmapped_Key, 0x01, 0x79);
107 addSIRC12Key("select", Unmapped_Key, 0x01, 0x7C); // PictureMode_Key?
109 addSIRC12Key("vt_inf", TeletextIndex_Key, 0x03, 0x48); // "Teletext Home"
110 addSIRC12Key("expand", TeletextSize_Key, 0x03, 0x49);
111 addSIRC12Key("Teletext Hold", TeletextHold_Key, 0x03, 0x4A); // "shrink"
112 addSIRC12Key("subtitles", Unmapped_Key, 0x03, 0x4B); // Teletext subtitles
113 addSIRC12Key("LEFT/-/RED", Red_Key, 0x03, 0x4C);
114 addSIRC12Key("UP/GREEN", Green_Key, 0x03, 0x4D);
115 addSIRC12Key("RIGHT/+/YELLOW", Yellow_Key, 0x03, 0x4E);
116 addSIRC12Key("DOWN/BLUE", Blue_Key, 0x03, 0x4F);
118 addSIRC15Key("SYNC_MENU", Unmapped_Key, 0x1A, 0x58);
119 addSIRC15Key("SCENE", Unmapped_Key, 0x1A, 0x78);
120 addSIRC15Key("INTERNET_VIDEO", Unmapped_Key, 0x1A, 0x79);
121 addSIRC15Key("I-MANUAL", Unmapped_Key, 0x1A, 0x7B);
123 addSIRC15Key("DIGITAL_ANALOG", Unmapped_Key, 0x77, 0x0D);
124 addSIRC15Key("DIGITAL", Unmapped_Key, 0x77, 0x52);
125 addSIRC15Key("theatre", Unmapped_Key, 0x77, 0x60); // "Home Theater"
126 addSIRC15Key("FAVORITES", Favorites_Key, 0x77, 0x76);
128 addSIRC15Key("STOP", Stop_Key, 0x97, 0x18);
129 addSIRC15Key("PAUSE", Pause_Key, 0x97, 0x19);
130 addSIRC15Key("PLAY", Play_Key, 0x97, 0x1A);
131 addSIRC15Key("FBACKWARD", Rewind_Key, 0x97, 0x1B);
132 addSIRC15Key("FFORWARD", FastForward_Key, 0x97, 0x1C);
133 addSIRC15Key("DOT", Unmapped_Key, 0x97, 0x1D);
134 addSIRC15Key("RETURN", Unmapped_Key, 0x97, 0x23); // exit?
135 addSIRC15Key("TOOLS", Unmapped_Key, 0x97, 0x36); // "OPTIONS"
136 addSIRC15Key("PREVIOUS", Previous_Key, 0x97, 0x3C);
137 addSIRC15Key("NEXT", Next_Key, 0x97, 0x3D);
138 addSIRC15Key("REPLAY", Replay_Key, 0x97, 0x79);
139 addSIRC15Key("ADVANCE", Advance_Key, 0x97, 0x78);
140 addSIRC15Key("SOUND", Unmapped_Key, 0x97, 0x7B);
142 addSIRC15Key("Surround_Mode", Unmapped_Key, 0xA4, 0x1F); // "Music"
143 addSIRC15Key("16:9", AspectRatio_Key, 0xA4, 0x3D); // "WIDE"
144 addSIRC15Key("EPG", Guide_Key, 0xA4, 0x5B);
145 addSIRC15Key("PIP_Audio", Unmapped_Key, 0xA4, 0x7C);
153 setKeysetName("TV Keyset 1a");
155 addControlledDevice(Sony_Make, "KDW-25", TV_Device);
159 void SonyTV1a::populateProtocol(
162 if (threadableProtocol)
164 // If the pointer is not null, the keyset must already be populated.
168 SonyTV1::populateProtocol(guiObject);
170 addSIRC12Key("LEFT/-/RED", Left_Key, 0x03, 0x4C);
171 addSIRC12Key("UP/GREEN", Up_Key, 0x03, 0x4D);
172 addSIRC12Key("RIGHT/+/YELLOW", Right_Key, 0x03, 0x4E);
173 addSIRC12Key("DOWN/BLUE", Down_Key, 0x03, 0x4F);
181 setKeysetName("TV Keyset 1b");
185 void SonyTV1b::populateProtocol(
188 if (threadableProtocol)
190 // If the pointer is not null, the keyset must already be populated.
194 SonyTV1a::populateProtocol(guiObject);
196 addSIRC12Key("clear", Unmapped_Key, 0x01, 0x34); // "Clock Clear"
197 addSIRC12Key("level_plus", Unmapped_Key, 0x01, 0x74);
198 addSIRC12Key("level_minus", Unmapped_Key, 0x01, 0x75);
199 addSIRC12Key("am/pm", Unmapped_Key, 0x01, 0x33);
203 // Not sure about these codes:
208 setKeysetName("TV Keyset 1c");
212 void SonyTV1c::populateProtocol(
215 if (threadableProtocol)
217 // If the pointer is not null, the keyset must already be populated.
221 SonyTV1::populateProtocol(guiObject);
223 addSIRC12Key(">>", FastForward_Key, 0x01, 0x58);
224 addSIRC12Key("<<", Rewind_Key, 0x01, 0x59);
225 addSIRC12Key("rec", Record_Key, 0x01, 0x5A);
226 addSIRC12Key("pause", Pause_Key, 0x01, 0x5C);
227 addSIRC12Key("stop", Stop_Key, 0x01, 0x5E);
228 addSIRC12Key("play", Play_Key, 0x01, 0x5F);
230 addSIRC15Key("BLUE", Blue_Key, 0x97, 0x24);
231 addSIRC15Key("RED", Red_Key, 0x97, 0x25);
232 addSIRC15Key("GREEN", Green_Key, 0x97, 0x26);
233 addSIRC15Key("YELLOW", Yellow_Key, 0x97, 0x27);
234 addSIRC15Key("SUBTITLES", Captions_Key, 0x97, 0x28);
238 // These controls don't quite match other SIRC data. (some do, some don't)
239 // This all taken from LIRC "AMPIR" config file.
250 void SonyAmp1::populateProtocol(
253 if (threadableProtocol)
255 // If the pointer is not null, the keyset must already be populated.
259 threadableProtocol = new SIRCProtocol(guiObject, index);
261 addSIRC12Key("1", One_Key, 0x0C, 0x00);
262 addSIRC12Key("2", Two_Key, 0x0C, 0x01);
263 addSIRC12Key("3", Three_Key, 0x0C, 0x02);
264 addSIRC12Key("4", Four_Key, 0x0C, 0x03);
265 addSIRC12Key("5", Five_Key, 0x0C, 0x04);
266 addSIRC12Key("6", Six_Key, 0x0C, 0x05);
267 addSIRC12Key("7", Seven_Key, 0x0C, 0x06);
268 addSIRC12Key("8", Eight_Key, 0x0C, 0x07);
269 addSIRC12Key("9", Nine_Key, 0x0C, 0x08);
270 addSIRC12Key("0", Zero_Key, 0x0C, 0x09);
271 addSIRC12Key("ENTER", Enter_Key, 0x0C, 0x0B);
272 addSIRC12Key("DIGITAL", Unmapped_Key, 0x0C, 0x0C);
273 addSIRC12Key("VIDEO3", Unmapped_Key, 0x0C, 0x0A);
274 addSIRC12Key("VIDEO4", Unmapped_Key, 0x0C, 0x0B);
275 addSIRC12Key("VOL+", VolumeUp_Key, 0x0C, 0x12);
276 addSIRC12Key("VOL-", VolumeDown_Key, 0x0C, 0x13);
277 addSIRC12Key("MUTE", Mute_Key, 0x0C, 0x14);
278 addSIRC12Key("POWER", Power_Key, 0x0C, 0x15);
279 addSIRC12Key("LD", LDInput_Key, 0x0C, 0x19);
280 addSIRC12Key("TV", CableInput_Key, 0x0C, 0x18);
281 addSIRC12Key("VIDEO2", Unmapped_Key, 0x0C, 0x1E);
282 addSIRC12Key("PHONO", PhonoInput_Key, 0x0C, 0x20);
283 addSIRC12Key("TUNER", TunerInput_Key, 0x0C, 0x21);
284 addSIRC12Key("VIDEO1", Unmapped_Key, 0x0C, 0x22);
285 addSIRC12Key("TAPE", TapeInput_Key, 0x0C, 0x23);
286 addSIRC12Key("CD", CDInput_Key, 0x0C, 0x25);
287 addSIRC12Key("DAT", Unmapped_Key, 0x0C, 0x46);
288 addSIRC12Key("SLEEP", Sleep_Key, 0x0C, 0x60);
289 addSIRC12Key("MD", MDInput_Key, 0x0C, 0x69);
290 addSIRC12Key("TV2", Unmapped_Key, 0x0C, 0x6A);
291 addSIRC12Key("5.1CH", Unmapped_Key, 0x0C, 0x72);
292 addSIRC12Key("DVD", DVDInput_Key, 0x0C, 0x7D);
296 // These taken from LIRC config file "RM-AV2100T".
307 void SonyAmp2::populateProtocol(
310 if (threadableProtocol)
312 // If the pointer is not null, the keyset must already be populated.
316 threadableProtocol = new SIRCProtocol(guiObject, index);
318 addSIRC12Key("up", Up_Key, 0x0C, 0x78);
319 addSIRC12Key("down", Down_Key, 0x0C, 0x79);
320 addSIRC12Key("left", Left_Key, 0x0C, 0x7A);
321 addSIRC12Key("right", Right_Key, 0x0C, 0x7B);
323 addSIRC12Key("program_+", ChannelUp_Key, 0x0D, 0x10);
324 addSIRC12Key("program_-", ChannelDown_Key, 0x0D, 0x11);
325 addSIRC12Key("shift", Unmapped_Key, 0x0D, 0x55);
327 addSIRC12Key("1", One_Key, 0x10, 0x00);
328 addSIRC12Key("2", Two_Key, 0x10, 0x01);
329 addSIRC12Key("3", Three_Key, 0x10, 0x02);
330 addSIRC12Key("4", Four_Key, 0x10, 0x03);
331 addSIRC12Key("5", Five_Key, 0x10, 0x04);
332 addSIRC12Key("6", Six_Key, 0x10, 0x05);
333 addSIRC12Key("7", Seven_Key, 0x10, 0x06);
334 addSIRC12Key("8", Eight_Key, 0x10, 0x07);
335 addSIRC12Key("9", Nine_Key, 0x10, 0x08);
336 addSIRC12Key("0", Zero_Key, 0x10, 0x09);
337 addSIRC12Key("enter", Enter_Key, 0x10, 0x0C);
338 addSIRC12Key("vol_+", VolumeUp_Key, 0x10, 0x12);
339 addSIRC12Key("vol_-", VolumeDown_Key, 0x10, 0x13);
340 addSIRC12Key("mute", Mute_Key, 0x10, 0x14);
341 addSIRC12Key("power", Power_Key, 0x10, 0x15);
342 addSIRC12Key("aux/vdp", AuxInput_Key, 0x10, 0x1D);
343 addSIRC12Key("video2", Unmapped_Key, 0x10, 0x1E);
344 addSIRC12Key("phono", PhonoInput_Key, 0x10, 0x20);
345 addSIRC12Key("tuner", TunerInput_Key, 0x10, 0x21);
346 addSIRC12Key("video1", Unmapped_Key, 0x10, 0x22);
347 addSIRC12Key("tape", TapeInput_Key, 0x10, 0x23);
348 addSIRC12Key("cd", CDInput_Key, 0x10, 0x25);
349 addSIRC12Key("power_on", PowerOn_Key, 0x10, 0x2E);
350 addSIRC12Key("video3", Unmapped_Key, 0x10, 0x42);
351 addSIRC12Key("tv", CableInput_Key, 0x10, 0x6A);
352 addSIRC12Key("dvd", DVDInput_Key, 0x10, 0x7D);
354 addSIRC15Key("md/dat", MDInput_Key, 0x10, 0x69);
358 SonyAudio1::SonyAudio1(
368 void SonyAudio1::populateProtocol(
371 if (threadableProtocol)
373 // If the pointer is not null, the keyset must already be populated.
377 threadableProtocol = new SIRCProtocol(guiObject, index);
379 addSIRC12Key("tv_video", Input_Key, 0x01, 0x25);
381 addSIRC12Key("DSG", Unmapped_Key, 0x0C, 0x31);
383 addSIRC12Key("MEMORY", Program_Key, 0x0D, 0x0E);
384 addSIRC12Key("TUNER-BAND", TunerBand_Key, 0x0D, 0x0F);
385 addSIRC12Key("TUNING_MODE", Unmapped_Key, 0x0D, 0x17);
386 addSIRC12Key("STEREO-MONO", FMMode_Key, 0x0D, 0x21);
388 addSIRC12Key("DIR_MODE", Unmapped_Key, 0x0E, 0x14);
389 addSIRC12Key("REC", Record_Key, 0x0E, 0x1E);
390 addSIRC12Key("TAPE", TapeInput_Key, 0x0E, 0x34);
392 addSIRC12Key("tuner", TunerInput_Key, 0x10, 0x0F); // "Tune Up"
393 addSIRC12Key("VOL+", VolumeUp_Key, 0x10, 0x12);
394 addSIRC12Key("VOL-", VolumeDown_Key, 0x10, 0x13);
395 addSIRC12Key("ON-OFF", Power_Key, 0x10, 0x15);
396 addSIRC12Key("effect_on_off", Unmapped_Key, 0x10, 0x1F);
397 addSIRC12Key("cd", CDInput_Key, 0x10, 0x25);
398 addSIRC12Key("DISPLAY", Info_Key, 0x10, 0x4B);
399 addSIRC12Key("dimmer", Unmapped_Key, 0x10, 0x4D);
400 addSIRC12Key("karaoke_mpx", Unmapped_Key, 0x10, 0x5F);
401 addSIRC12Key("SLEEP", Sleep_Key, 0x10, 0x60);
402 addSIRC12Key("TIMER_SELECT", Unmapped_Key, 0x10, 0x62); // "clock_select"
403 addSIRC12Key("TIMER_SET", Timer_Key, 0x10, 0x65);
404 addSIRC12Key("md", Unmapped_Key, 0x10, 0x69);
405 addSIRC12Key("game", Unmapped_Key, 0x10, 0x7C);
407 addSIRC12Key("CD_REPEAT", Repeat_Key, 0x11, 0x2C);
408 addSIRC12Key("CD", Unmapped_Key, 0x11, 0x32);
409 addSIRC12Key("PLAY_MODE", Unmapped_Key, 0x11, 0x6C);
411 addSIRC15Key("cinema_effect", Unmapped_Key, 0x90, 0x08);
412 addSIRC15Key("game_mixing", Unmapped_Key, 0x90, 0x33);
413 addSIRC15Key("spectrum", Unmapped_Key, 0x90, 0x34);
414 addSIRC15Key("p_file", Unmapped_Key, 0x90, 0x39);
415 addSIRC15Key("surround_speaker_mode", Surround_Key, 0x90, 0x5F);
416 addSIRC15Key("music_eq", Unmapped_Key, 0x90, 0x60);
417 addSIRC15Key("movie_eq", Unmapped_Key, 0x90, 0x61);
418 addSIRC15Key("game_eq", Unmapped_Key, 0x90, 0x62);
420 addSIRC20Key("return", Exit_Key, 0x31, 0x1A, 0x0E);
421 addSIRC20Key("prev_r", Unmapped_Key, 0x31, 0x1A, 0x36);
422 addSIRC20Key("next_r", Unmapped_Key, 0x31, 0x1A, 0x37);
423 addSIRC20Key("special_menu", Menu_Key, 0x31, 0x1A, 0x53);
424 addSIRC20Key("on_screen", Unmapped_Key, 0x31, 0x1A, 0x55);
425 addSIRC20Key("sharp", Unmapped_Key, 0x31, 0x1A, 0x6B);
426 addSIRC20Key("flat", Unmapped_Key, 0x31, 0x1A, 0x6C);
427 addSIRC20Key("album-", Unmapped_Key, 0x31, 0x1A, 0x6E);
428 addSIRC20Key("album+", Unmapped_Key, 0x31, 0x1A, 0x6F);
430 addSIRC20Key("1", One_Key, 0x39, 0x1A, 0x00);
431 addSIRC20Key("2", Two_Key, 0x39, 0x1A, 0x01);
432 addSIRC20Key("3", Three_Key, 0x39, 0x1A, 0x02);
433 addSIRC20Key("4", Four_Key, 0x39, 0x1A, 0x03);
434 addSIRC20Key("5", Five_Key, 0x39, 0x1A, 0x04);
435 addSIRC20Key("6", Six_Key, 0x39, 0x1A, 0x05);
436 addSIRC20Key("7", Seven_Key, 0x39, 0x1A, 0x06);
437 addSIRC20Key("8", Eight_Key, 0x39, 0x1A, 0x07);
438 addSIRC20Key("9", Nine_Key, 0x39, 0x1A, 0x08);
439 addSIRC20Key("0", Zero_Key, 0x39, 0x1A, 0x09);
440 addSIRC20Key("KEY_ENTER", Enter_Key, 0x39, 0x1A, 0x0C);
441 addSIRC20Key("gt_10", DoubleDigit_Key, 0x39, 0x1A, 0x0D);
442 addSIRC20Key("clear", Clear_Key, 0x39, 0x1A, 0x0F);
443 addSIRC20Key("repeat", Repeat_Key, 0x39, 0x1A, 0x2C);
444 addSIRC20Key("KEY_PREV_SONG", Previous_Key, 0x39, 0x1A, 0x30);
445 addSIRC20Key("KEY_NEXT_SONG", Next_Key, 0x39, 0x1A, 0x31);
446 addSIRC20Key("KEY_PREV", Rewind_Key, 0x39, 0x1A, 0x33); // "Rewind"
447 addSIRC20Key("KEY_NEXT", FastForward_Key, 0x39, 0x1A, 0x34); // "Fast Forward"
448 addSIRC20Key("KEY_STOP", Stop_Key, 0x39, 0x1A, 0x38);
449 addSIRC20Key("KEY_PAUSE", Pause_Key, 0x39, 0x1A, 0x39);
450 addSIRC20Key("d_skip", NextDisc_Key, 0x39, 0x1A, 0x3E);
451 addSIRC20Key("up", Up_Key, 0x39, 0x1A, 0x78);
452 addSIRC20Key("down", Down_Key, 0x39, 0x1A, 0x79);
453 addSIRC20Key("left", Left_Key, 0x39, 0x1A, 0x7A);
454 addSIRC20Key("right", Right_Key, 0x39, 0x1A, 0x7B);
455 addSIRC20Key("Select", Select_Key, 0x39, 0x1A, 0x7C);
459 SonyAudio1a::SonyAudio1a(
463 setKeysetName("Audio Keyset 1a");
467 void SonyAudio1a::populateProtocol(
470 if (threadableProtocol)
472 // If the pointer is not null, the keyset must already be populated.
476 SonyAudio1::populateProtocol(guiObject);
478 addSIRC12Key("tape", TapeInput_Key, 0x10, 0x23);
480 // addSIRC20Key("select", Select_Key, 0x39, 0x1A, 0x32); // Doesn't make sense
481 addSIRC20Key("play", Play_Key, 0x39, 0x1A, 0x32);
482 addSIRC20Key("play_mode", Unmapped_Key, 0x39, 0x1A, 0x26);
483 addSIRC20Key("enter", Select_Key, 0x39, 0x1A, 0x7C);
497 void SonyDAT1::populateProtocol(
500 if (threadableProtocol)
502 // If the pointer is not null, the keyset must already be populated.
506 threadableProtocol = new SIRCProtocol(guiObject, index);
508 setPostData(0x07, 5);
510 addSIRC12Key("1", One_Key, 0x1C, 0x00);
511 addSIRC12Key("2", Two_Key, 0x1C, 0x01);
512 addSIRC12Key("3", Three_Key, 0x1C, 0x02);
513 addSIRC12Key("4", Four_Key, 0x1C, 0x03);
514 addSIRC12Key("5", Five_Key, 0x1C, 0x04);
515 addSIRC12Key("6", Six_Key, 0x1C, 0x05);
516 addSIRC12Key("7", Seven_Key, 0x1C, 0x06);
517 addSIRC12Key("8", Eight_Key, 0x1C, 0x07);
518 addSIRC12Key("9", Nine_Key, 0x1C, 0x08);
519 addSIRC12Key("0", Zero_Key, 0x1C, 0x14);
520 addSIRC12Key("PLAY", Play_Key, 0x1C, 0x3A);
521 addSIRC12Key("PAUSE", Pause_Key, 0x1C, 0x39);
522 addSIRC12Key("STOP", Stop_Key, 0x1C, 0x38);
523 addSIRC12Key("<<", Rewind_Key, 0x1C, 0x3B);
524 addSIRC12Key(">>", FastForward_Key, 0x1C, 0x3C);
525 addSIRC12Key("|<<", Previous_Key, 0x1C, 0x68);
526 addSIRC12Key(">>|", Next_Key, 0x1C, 0x69);
527 addSIRC12Key("RECORD", Record_Key, 0x1C, 0x3E);
528 addSIRC12Key("Open/Close", Eject_Key, 0x1C, 0x20);
530 // The following commands are dubious:
531 addSIRC12Key("VOL+", VolumeUp_Key, 0x1C, 0x12);
532 addSIRC12Key("VOL-", VolumeDown_Key, 0x1C, 0x13);
533 addSIRC12Key("POWER_ON", PowerOn_Key, 0x1C, 0x2E);
534 addSIRC12Key("POWER_OFF", PowerOff_Key, 0x1C, 0x2F);
535 addSIRC12Key("MUTE", Mute_Key, 0x1C, 0x14); // Makes no sense...
536 addSIRC12Key("POWER", Power_Key, 0x1C, 0x15);
537 addSIRC12Key("ENTER", Enter_Key, 0x1C, 0x0B);
548 addControlledDevice(Sony_Make, "DVP-CX985V", DVD_Device);
549 addControlledDevice(Sony_Make, "DVP-NS608P", DVD_Device);
553 void SonyDVD1::populateProtocol(
556 if (threadableProtocol)
558 // If the pointer is not null, the keyset must already be populated.
562 threadableProtocol = new SIRCProtocol(guiObject, index);
564 addSIRC20Key("1", One_Key, 0x49, 0x1A, 0x00);
565 addSIRC20Key("2", Two_Key, 0x49, 0x1A, 0x01);
566 addSIRC20Key("3", Three_Key, 0x49, 0x1A, 0x02);
567 addSIRC20Key("4", Four_Key, 0x49, 0x1A, 0x03);
568 addSIRC20Key("5", Five_Key, 0x49, 0x1A, 0x04);
569 addSIRC20Key("6", Six_Key, 0x49, 0x1A, 0x05);
570 addSIRC20Key("7", Seven_Key, 0x49, 0x1A, 0x06);
571 addSIRC20Key("8", Eight_Key, 0x49, 0x1A, 0x07);
572 addSIRC20Key("9", Nine_Key, 0x49, 0x1A, 0x08);
573 addSIRC20Key("0", Zero_Key, 0x49, 0x1A, 0x09);
574 addSIRC20Key("select", Select_Key, 0x49, 0x1A, 0x0B); //"Enter"
575 addSIRC20Key("Disc Explorer", Unmapped_Key, 0x49, 0x1A, 0x0C);
576 addSIRC20Key("Ent", Enter_Key, 0x49, 0x1A, 0x0D); // "Set"
577 addSIRC20Key("return", Exit_Key, 0x49, 0x1A, 0x0E);
578 addSIRC20Key("CLEAR", Clear_Key, 0x49, 0x1A, 0x0F);
579 addSIRC20Key("-/--", DoubleDigit_Key, 0x49, 0x1A, 0x0F);
581 addSIRC20Key("Input", Input_Key, 0x49, 0x1A, 0x12);
582 addSIRC20Key("prog+", ChannelUp_Key, 0x49, 0x1A, 0x13);
583 addSIRC20Key("prog-", ChannelDown_Key, 0x49, 0x1A, 0x14);
584 addSIRC20Key("power", Power_Key, 0x49, 0x1A, 0x15);
585 addSIRC20Key("open/close", Eject_Key, 0x49, 0x1A, 0x16);
586 addSIRC20Key("rec", Record_Key, 0x49, 0x1A, 0x19);
587 addSIRC20Key("top_menu", DiscTitle_Key, 0x49, 0x1A, 0x1A); // "Title"
588 addSIRC20Key("dvd_menu", DiscMenu_Key, 0x49, 0x1A, 0x1B);
589 addSIRC20Key("program", Program_Key, 0x49, 0x1A, 0x1F);
590 addSIRC20Key("step/search -", StepBack_Key, 0x49, 0x1A, 0x20);
591 addSIRC20Key("step/search +", StepForward_Key, 0x49, 0x1A, 0x21);
592 addSIRC20Key("scan/slow -", SlowMinus_Key, 0x49, 0x1A, 0x22);
593 addSIRC20Key("scan/slow +", SlowPlus_Key, 0x49, 0x1A, 0x23);
594 addSIRC20Key("INDEX-", Unmapped_Key, 0x49, 0x1A, 0x26);
595 addSIRC20Key("INDEX+", Unmapped_Key, 0x49, 0x1A, 0x27);
596 addSIRC20Key("TIME", Unmapped_Key, 0x49, 0x1A, 0x28);
597 addSIRC20Key("JOG_STOP", Unmapped_Key, 0x49, 0x1A, 0x29); // "Pause"
598 addSIRC20Key("a-b", RepeatAB_Key, 0x49, 0x1A, 0x2A);
599 addSIRC20Key("repeat", Repeat_Key, 0x49, 0x1A, 0x2C);
600 addSIRC20Key("POWER_ON", PowerOn_Key, 0x49, 0x1A, 0x2E);
601 addSIRC20Key("POWER_OFF", PowerOff_Key, 0x49, 0x1A, 0x2F);
603 addSIRC20Key("prev", Previous_Key, 0x49, 0x1A, 0x30);
604 addSIRC20Key("next", Next_Key, 0x49, 0x1A, 0x31);
605 addSIRC20Key("play", Play_Key, 0x49, 0x1A, 0x32);
606 addSIRC20Key("rew", Rewind_Key, 0x49, 0x1A, 0x33);
607 addSIRC20Key("ffwd", FastForward_Key, 0x49, 0x1A, 0x34);
608 addSIRC20Key("shuffle", Random_Key, 0x49, 0x1A, 0x35);
609 addSIRC20Key("X2_BACK", Unmapped_Key, 0x49, 0x1A, 0x36);
610 addSIRC20Key("X2_FORWARD", Unmapped_Key, 0x49, 0x1A, 0x37);
611 addSIRC20Key("stop", Stop_Key, 0x49, 0x1A, 0x38);
612 addSIRC20Key("pause", Pause_Key, 0x49, 0x1A, 0x39);
613 addSIRC20Key("STEP_BACK", Unmapped_Key, 0x49, 0x1A, 0x3A); // "Jog Rev"
614 addSIRC20Key("STEP_FORWARD", Unmapped_Key, 0x49, 0x1A, 0x3B); // "Jog Fwd"
615 addSIRC20Key("RecStop", RecordStop_Key, 0x49, 0x1A, 0x3D);
616 addSIRC20Key("RecPause", RecordPause_Key, 0x49, 0x1A, 0x3E);
618 addSIRC20Key("DNR", NoiseReduction_Key, 0x49, 0x1A, 0x48);
619 addSIRC20Key("SEARCH_MODE", Unmapped_Key, 0x49, 0x1A, 0x4B);
620 addSIRC20Key("Picture_Navi", Unmapped_Key, 0x49, 0x1A, 0x50);
621 addSIRC20Key("TV_DVD", Unmapped_Key, 0x49, 0x1A, 0x51);
622 addSIRC20Key("menu", Menu_Key, 0x49, 0x1A, 0x53); // "setup"
623 addSIRC20Key("Display", Info_Key, 0x49, 0x1A, 0x54);
624 addSIRC20Key("surround", Surround_Key, 0x49, 0x1A, 0x5A);
625 addSIRC20Key("PICTUREMODE", PictureMode_Key, 0x49, 0x1A, 0x5B);
626 addSIRC20Key("Replay", Replay_Key, 0x49, 0x1A, 0x5C);
627 addSIRC20Key("SA-CD_MULTI/2CH", Unmapped_Key, 0x49, 0x1A, 0x5E);
628 addSIRC20Key("SA-CD/CD", Unmapped_Key, 0x49, 0x1A, 0x5F);
630 addSIRC20Key("SLOW_BACK", SlowMinus_Key, 0x49, 0x1A, 0x60);
631 addSIRC20Key("SLOW_FORWARD", SlowPlus_Key, 0x49, 0x1A, 0x61);
632 addSIRC20Key("SUBTITLE_ON_OFF", Captions_Key, 0x49, 0x1A, 0x62);
633 addSIRC20Key("Subtitle Change", Unmapped_Key, 0x49, 0x1A, 0x63);
634 addSIRC20Key("Language", Audio_Key, 0x49, 0x1A, 0x64); // "Audio"
635 addSIRC20Key("ANGLE_CHANGE", Angle_Key, 0x49, 0x1A, 0x65); // "Angle"
636 addSIRC20Key("up", Up_Key, 0x49, 0x1A, 0x79);
637 addSIRC20Key("down", Down_Key, 0x49, 0x1A, 0x7A);
638 addSIRC20Key("left", Left_Key, 0x49, 0x1A, 0x7B);
639 addSIRC20Key("right", Right_Key, 0x49, 0x1A, 0x7C);
641 addSIRC20Key("Advance", Advance_Key, 0x62, 0x1A, 0x14);
642 addSIRC20Key("Guide", Guide_Key, 0x62, 0x1A, 0x16);
643 addSIRC20Key("Options", Unmapped_Key, 0x62, 0x1A, 0x17); // "Tools"
644 addSIRC20Key("Dot", Unmapped_Key, 0x62, 0x1A, 0x1D);
645 addSIRC20Key("file", Unmapped_Key, 0x62, 0x1A, 0x20);
646 addSIRC20Key("sort", Unmapped_Key, 0x62, 0x1A, 0x21);
647 addSIRC20Key("edit", Unmapped_Key, 0x62, 0x1A, 0x22);
648 addSIRC20Key("ALBUM-MINUS", Unmapped_Key, 0x62, 0x1A, 0x29);
649 addSIRC20Key("ALBUM-PLUS", Unmapped_Key, 0x62, 0x1A, 0x2A);
650 addSIRC20Key("F1", Unmapped_Key, 0x62, 0x1A, 0x2E); // "HDD"
651 addSIRC20Key("F2", Unmapped_Key, 0x62, 0x1A, 0x2F); // "DVD"
652 addSIRC20Key("picture memory", Unmapped_Key, 0x62, 0x1A, 0x3C);
653 addSIRC20Key("disc skip -", PrevDisc_Key, 0x62, 0x1A, 0x3D);
654 addSIRC20Key("DiscSkip", NextDisc_Key, 0x62, 0x1A, 0x3E); // "disc skip +"
655 addSIRC20Key("folder", Unmapped_Key, 0x62, 0x1A, 0x40);
656 addSIRC20Key("Favorites", Favorites_Key, 0x62, 0x1A, 0x5E);
657 addSIRC20Key("Purple", Blue_Key, 0x62, 0x1A, 0x66);
658 addSIRC20Key("Red", Red_Key, 0x62, 0x1A, 0x67);
659 addSIRC20Key("Green", Green_Key, 0x62, 0x1A, 0x68);
660 addSIRC20Key("Yellow", Yellow_Key, 0x62, 0x1A, 0x69);
661 addSIRC20Key("ZOOM", Zoom_Key, 0x62, 0x1A, 0x79);
665 SonyDVD1a::SonyDVD1a(
669 setKeysetName("DVD Keyset 1a");
673 void SonyDVD1a::populateProtocol(
676 if (threadableProtocol)
678 // If the pointer is not null, the keyset must already be populated.
682 SonyDVD1::populateProtocol(guiObject);
684 addSIRC20Key("STEP_BACK", StepBack_Key, 0x49, 0x1A, 0x20);
685 addSIRC20Key("STEP_FORWARD", StepForward_Key, 0x49, 0x1A, 0x21);
686 addSIRC20Key("SLOW_BACK", SlowMinus_Key, 0x49, 0x1A, 0x22);
687 addSIRC20Key("SLOW_FORWARD", SlowPlus_Key, 0x49, 0x1A, 0x23);
691 SonyDVD1b::SonyDVD1b(
695 setKeysetName("DVD Keyset 1b");
699 void SonyDVD1b::populateProtocol(
702 if (threadableProtocol)
704 // If the pointer is not null, the keyset must already be populated.
708 SonyDVD1::populateProtocol(guiObject);
710 addSIRC20Key("SLOW-", SlowMinus_Key, 0x49, 0x1A, 0x72);
711 addSIRC20Key("SLOW+", SlowPlus_Key, 0x49, 0x1A, 0x73);
715 SonyDVD1c::SonyDVD1c(
719 setKeysetName("DVD Keyset 1c");
723 void SonyDVD1c::populateProtocol(
726 if (threadableProtocol)
728 // If the pointer is not null, the keyset must already be populated.
732 SonyDVD1::populateProtocol(guiObject);
734 addSIRC20Key("up", Up_Key, 0x49, 0x1A, 0x39);
735 addSIRC20Key("down", Down_Key, 0x49, 0x1A, 0x38);
736 addSIRC20Key("left", Left_Key, 0x49, 0x1A, 0x33);
737 addSIRC20Key("right", Right_Key, 0x49, 0x1A, 0x34);
738 addSIRC20Key("ok", Select_Key, 0x49, 0x1A, 0x32);
739 addSIRC20Key("enter", Enter_Key, 0x49, 0x1A, 0x0B);
753 void SonyVCR1::populateProtocol(
756 if (threadableProtocol)
758 // If the pointer is not null, the keyset must already be populated.
762 threadableProtocol = new SIRCProtocol(guiObject, index);
764 addSIRC12Key("VOL_UP", VolumeUp_Key, 0x01, 0x12);
765 addSIRC12Key("VOL_DOWN", VolumeDown_Key, 0x01, 0x13);
767 addSIRC12Key("red", Red_Key, 0x03, 0x4C);
768 addSIRC12Key("green", Green_Key, 0x03, 0x4D);
769 addSIRC12Key("Yellow", Yellow_Key, 0x03, 0x4E);
770 addSIRC12Key("blue", Blue_Key, 0x03, 0x4F);
772 addSIRC12Key("1", One_Key, 0x0B, 0x00);
773 addSIRC12Key("2", Two_Key, 0x0B, 0x01);
774 addSIRC12Key("3", Three_Key, 0x0B, 0x02);
775 addSIRC12Key("4", Four_Key, 0x0B, 0x03);
776 addSIRC12Key("5", Five_Key, 0x0B, 0x04);
777 addSIRC12Key("6", Six_Key, 0x0B, 0x05);
778 addSIRC12Key("7", Seven_Key, 0x0B, 0x06);
779 addSIRC12Key("8", Eight_Key, 0x0B, 0x07);
780 addSIRC12Key("9", Nine_Key, 0x0B, 0x08);
781 addSIRC12Key("0", Zero_Key, 0x0B, 0x09);
782 // addSIRC12Key("jump", PrevChannel_Key, 0x0B, 0x0A); // might be wrong
783 addSIRC12Key("-/--", DoubleDigit_Key, 0x0B, 0x0A);
784 addSIRC12Key("ENT", Enter_Key, 0x0B, 0x0B); // "Enter"
786 addSIRC12Key("prog-next", ChannelUp_Key, 0x0B, 0x10);
787 addSIRC12Key("prog-prev", ChannelDown_Key, 0x0B, 0x11);
788 addSIRC12Key("pwon", Power_Key, 0x0B, 0x15);
789 addSIRC12Key("stop", Stop_Key, 0x0B, 0x18);
790 addSIRC12Key("pause", Pause_Key, 0x0B, 0x19);
791 addSIRC12Key("play", Play_Key, 0x0B, 0x1A);
792 addSIRC12Key("<<", Rewind_Key, 0x0B, 0x1B);
793 addSIRC12Key(">>", FastForward_Key, 0x0B, 0x1C);
794 addSIRC12Key("rec", Record_Key, 0x0B, 0x1D);
795 addSIRC12Key("ant/sw", AntennaInput_Key, 0x0B, 0x2A); // "tv/vcr"
796 addSIRC12Key("power_on", PowerOn_Key, 0x0B, 0x2E);
797 addSIRC12Key("Power Off", PowerOff_Key, 0x0B, 0x2F);
798 addSIRC12Key("menu", Menu_Key, 0x0B, 0x4D);
799 addSIRC12Key("input", Input_Key, 0x0B, 0x4F);
800 addSIRC12Key("display", Info_Key, 0x0B, 0x5A);
802 // Odd cursor keys, overlap with media controls:
803 addSIRC12Key("down", Down_Key, 0x0B, 0x18);
804 addSIRC12Key("up", Up_Key, 0x0B, 0x19);
805 addSIRC12Key("ok", Select_Key, 0x0B, 0x1A);
806 addSIRC12Key("left", Left_Key, 0x0B, 0x1B);
807 addSIRC12Key("right", Right_Key, 0x0B, 0x1C);
811 SonyVCR1a::SonyVCR1a(
815 setKeysetName("VCR Keyset 1a");
819 void SonyVCR1a::populateProtocol(
822 if (threadableProtocol)
824 // If the pointer is not null, the keyset must already be populated.
828 SonyVCR1::populateProtocol(guiObject);
830 // These are the expected cursor keys:
831 addSIRC12Key("up", Up_Key, 0x0B, 0x42);
832 addSIRC12Key("down", Down_Key, 0x0B, 0x43);
833 addSIRC12Key("left", Left_Key, 0x0B, 0x62);
834 addSIRC12Key("right", Right_Key, 0x0B, 0x61);
835 addSIRC12Key("execute", Select_Key, 0x0B, 0x51); //"OK"
837 // addKey("SLEEP", Sleep_Key, 0x0B, 0x4F); // odd
841 // Extra codes off of hifi-remote website:
842 SonyVCR1b::SonyVCR1b(
846 setKeysetName("VCR Keyset 1b");
850 void SonyVCR1b::populateProtocol(
853 if (threadableProtocol)
855 // If the pointer is not null, the keyset must already be populated.
859 SonyVCR1a::populateProtocol(guiObject);
861 addSIRC12Key("Volume Up", VolumeUp_Key, 0x0B, 0x12);
862 addSIRC12Key("Volume Down", VolumeDown_Key, 0x0B, 0x13);
863 addSIRC12Key("Eject", Eject_Key, 0x0B, 0x16);
864 addSIRC12Key("Record Pause", RecordPause_Key, 0x0B, 0x1E);
865 addSIRC12Key("Record Mute", RecordMute_Key, 0x0B, 0x1F);
866 addSIRC12Key("Auto Tracking", AutoTracking_Key, 0x0B, 0x27);
867 addSIRC12Key("Frame Reverse", StepBack_Key, 0x0B, 0x30);
868 addSIRC12Key("Frame Advance", StepForward_Key, 0x0B, 0x31);
869 addSIRC12Key("Mute", Mute_Key, 0x0B, 0x35);
870 addSIRC12Key("Sleep", Sleep_Key, 0x0B, 0x36);
871 addSIRC12Key("Slow +", SlowPlus_Key, 0x0B, 0x3D);
872 addSIRC12Key("Slow -", SlowMinus_Key, 0x0B, 0x3E);
873 addSIRC12Key("Tracking Up", TrackingPlus_Key, 0x0B, 0x44);
874 addSIRC12Key("Tracking Down", TrackingMinus_Key, 0x0B, 0x45);
875 addSIRC12Key("SP/EP", VHSSpeed_Key, 0x0B, 0x58);
879 SonyReceiver1::SonyReceiver1(
889 void SonyReceiver1::populateProtocol(
892 if (threadableProtocol)
894 // If the pointer is not null, the keyset must already be populated.
898 threadableProtocol = new SIRCProtocol(guiObject, index);
900 addSIRC15Key("1", One_Key, 0x30, 0x00);
901 addSIRC15Key("2", Two_Key, 0x30, 0x01);
902 addSIRC15Key("3", Three_Key, 0x30, 0x02);
903 addSIRC15Key("4", Four_Key, 0x30, 0x03);
904 addSIRC15Key("5", Five_Key, 0x30, 0x04);
905 addSIRC15Key("6", Six_Key, 0x30, 0x05);
906 addSIRC15Key("7", Seven_Key, 0x30, 0x06);
907 addSIRC15Key("8", Eight_Key, 0x30, 0x07);
908 addSIRC15Key("9", Nine_Key, 0x30, 0x08);
909 addSIRC15Key("0", Zero_Key, 0x30, 0x09);
910 addSIRC15Key("SELECT", Select_Key, 0x30, 0x0C);
911 addSIRC15Key("VOLUME_UP", VolumeUp_Key, 0x30, 0x12);
912 addSIRC15Key("VOLUME_DOWN", VolumeDown_Key, 0x30, 0x13);
913 addSIRC15Key("MUTING", Mute_Key, 0x30, 0x14);
914 addSIRC15Key("POWER", Power_Key, 0x30, 0x15);
915 addSIRC15Key("VIDEO2", Unmapped_Key, 0x30, 0x1E);
916 addSIRC15Key("TUNER", TunerInput_Key, 0x30, 0x21);
917 addSIRC15Key("VIDEO1", Unmapped_Key, 0x30, 0x22);
918 addSIRC15Key("SA_CD", Unmapped_Key, 0x30, 0x25);
919 addSIRC15Key("VIDEO3", Unmapped_Key, 0x30, 0x42);
920 addSIRC15Key("DISPLAY", Info_Key, 0x30, 0x4B);
921 addSIRC15Key("SLEEP", Sleep_Key, 0x30, 0x60);
922 addSIRC15Key("TV", Unmapped_Key, 0x30, 0x6A);
923 addSIRC15Key("DVD", DVDInput_Key, 0x30, 0x7D);
925 addSIRC15Key("SAT", SatInput_Key, 0xB0, 0x03);
926 addSIRC15Key("2CH", Unmapped_Key, 0xB0, 0x09);
927 addSIRC15Key("AFD", Unmapped_Key, 0xB0, 0x0A);
928 addSIRC15Key("MOVIE", Unmapped_Key, 0xB0, 0x0B);
929 addSIRC15Key("DVD_MENU", DiscMenu_Key, 0xB0, 0x2D); // Not sure about this
930 addSIRC15Key("MUSIC", Unmapped_Key, 0xB0, 0x49);
931 addSIRC15Key("AMP_MENU", Menu_Key, 0xB0, 0x77);
932 addSIRC15Key("UP", Up_Key, 0xB0, 0x78);
933 addSIRC15Key("DOWN", Down_Key, 0xB0, 0x79);
934 addSIRC15Key("LEFT", Left_Key, 0xB0, 0x7A);
935 addSIRC15Key("RIGHT", Right_Key, 0xB0, 0x7B);
949 void SonyCD1::populateProtocol(
952 if (threadableProtocol)
954 // Keyset already populated.
958 threadableProtocol = new SIRCProtocol(guiObject, index);
960 addSIRC12Key("1", One_Key, 0x11, 0x00);
961 addSIRC12Key("2", Two_Key, 0x11, 0x01);
962 addSIRC12Key("3", Three_Key, 0x11, 0x02);
963 addSIRC12Key("4", Four_Key, 0x11, 0x03);
964 addSIRC12Key("5", Five_Key, 0x11, 0x04);
965 addSIRC12Key("6", Six_Key, 0x11, 0x05);
966 addSIRC12Key("7", Seven_Key, 0x11, 0x06);
967 addSIRC12Key("8", Eight_Key, 0x11, 0x07);
968 addSIRC12Key("9", Nine_Key, 0x11, 0x08);
969 addSIRC12Key("ENTER", Enter_Key, 0x11, 0x0B);
970 addSIRC12Key("check", Unmapped_Key, 0x11, 0x0D);
971 addSIRC12Key("clear", Clear_Key, 0x11, 0x0F);
973 addSIRC12Key("vol+", VolumeUp_Key, 0x11, 0x12);
974 addSIRC12Key("vol-", VolumeDown_Key, 0x11, 0x13);
975 addSIRC12Key("mute", Mute_Key, 0x11, 0x14);
976 addSIRC12Key("power", Power_Key, 0x11, 0x15);
977 addSIRC12Key("eject", Eject_Key, 0x11, 0x16);
978 addSIRC12Key("C.INDEX", Unmapped_Key, 0x11, 0x18);
979 addSIRC12Key("FILE", Memory_Key, 0x11, 0x19);
980 addSIRC12Key("BANK", Call_Key, 0x11, 0x1A); // "file recall"
981 addSIRC12Key("continue", Unmapped_Key, 0x11, 0x1D);
982 addSIRC12Key("single", Unmapped_Key, 0x11, 0x1E);
983 addSIRC12Key("pgm", Program_Key, 0x11, 0x1F);
985 addSIRC12Key("10", Zero_Key, 0x11, 0x20); // "0"
986 addSIRC12Key(">10", DoubleDigit_Key, 0x11, 0x27);
987 addSIRC12Key("DISPLAY", Info_Key, 0x11, 0x28); // "time"
988 addSIRC12Key("a-b", RepeatAB_Key, 0x11, 0x2A);
989 addSIRC12Key("repeat", Repeat_Key, 0x11, 0x2C);
990 addSIRC12Key("POWER_ON", PowerOn_Key, 0x11, 0x2E);
991 addSIRC12Key("POWER_OFF", PowerOff_Key, 0x11, 0x2F);
993 addSIRC12Key("|<<", Previous_Key, 0x11, 0x30);
994 addSIRC12Key(">>|", Next_Key, 0x11, 0x31);
995 addSIRC12Key("play", Play_Key, 0x11, 0x32);
996 addSIRC12Key("<<", Rewind_Key, 0x11, 0x33);
997 addSIRC12Key(">>", FastForward_Key, 0x11, 0x34);
998 addSIRC12Key("shuffle", Random_Key, 0x11, 0x35);
999 addSIRC12Key("cd_ind_dec", Unmapped_Key, 0x11, 0x36);
1000 addSIRC12Key("cd_ind_inc", Unmapped_Key, 0x11, 0x37);
1001 addSIRC12Key("stop", Stop_Key, 0x11, 0x38);
1002 addSIRC12Key("PAUSE", Pause_Key, 0x11, 0x39);
1003 addSIRC12Key("SLOW--", SlowMinus_Key, 0x11, 0x3A);
1004 addSIRC12Key("SLOW++", SlowPlus_Key, 0x11, 0x3B);
1005 addSIRC12Key("musicscan", Unmapped_Key, 0x11, 0x3C); // "intro"
1006 addSIRC12Key("prevDisc", PrevDisc_Key, 0x11, 0x3D);
1007 addSIRC12Key("disc_skip", NextDisc_Key, 0x11, 0x3E);
1009 addSIRC12Key("disc_1", Unmapped_Key, 0x11, 0x40);
1010 addSIRC12Key("disc_2", Unmapped_Key, 0x11, 0x41);
1011 addSIRC12Key("disc_3", Unmapped_Key, 0x11, 0x42);
1012 addSIRC12Key("disc_4", Unmapped_Key, 0x11, 0x43);
1013 addSIRC12Key("disc_5", Unmapped_Key, 0x11, 0x44);
1014 addSIRC12Key("DISC", Unmapped_Key, 0x11, 0x4A);
1015 addSIRC12Key("AUTO_SPACE", Unmapped_Key, 0x11, 0x4E);
1017 addSIRC12Key("fader", Unmapped_Key, 0x11, 0x5F); // "mute"
1019 addSIRC12Key("LEVEL_FILE", Unmapped_Key, 0x11, 0x68);
1027 setKeysetName("CD Keyset 1a");
1031 void SonyCD1a::populateProtocol(
1034 if (threadableProtocol)
1036 // Keyset already populated.
1040 SonyCD1::populateProtocol(guiObject);
1042 addSIRC12Key("a-b", RepeatAB_Key, 0x11, 0x2D);
1050 setKeysetName("CD Keyset 1b");
1054 void SonyCD1b::populateProtocol(
1057 if (threadableProtocol)
1059 // Keyset already populated.
1063 SonyCD1::populateProtocol(guiObject);
1065 addSIRC12Key("display", Info_Key, 0x11, 0x56);