2 #include "protocols/sharpprotocol.h"
3 #include "protocols/rc5protocol.h"
5 AdmiralTV1::AdmiralTV1(
13 threadableProtocol = new SharpProtocol(guiObject, index, true);
15 addSharpKey("tv-1", One_Key, 0x01, 0x01);
16 addSharpKey("tv-2", Two_Key, 0x01, 0x02);
17 addSharpKey("tv-3", Three_Key, 0x01, 0x03);
18 addSharpKey("tv-4", Four_Key, 0x01, 0x04);
19 addSharpKey("tv-5", Five_Key, 0x01, 0x05);
20 addSharpKey("tv-6", Six_Key, 0x01, 0x06);
21 addSharpKey("tv-7", Seven_Key, 0x01, 0x07);
22 addSharpKey("tv-8", Eight_Key, 0x01, 0x08);
23 addSharpKey("tv-9", Nine_Key, 0x01, 0x09);
24 addSharpKey("tv-0", Zero_Key, 0x01, 0x0A);
25 addSharpKey("tv-100", PlusOneHundred_Key, 0x01, 0x0B);
27 addSharpKey("tv-+", ChannelUp_Key, 0x01, 0x11);
28 addSharpKey("tv--", ChannelDown_Key, 0x01, 0x12);
29 addSharpKey("tv-input", Input_Key, 0x01, 0x13);
30 addSharpKey("vol+", VolumeUp_Key, 0x01, 0x14);
31 addSharpKey("vol-", VolumeDown_Key, 0x01, 0x15);
32 addSharpKey("tv-power", Power_Key, 0x01, 0x16);
33 addSharpKey("mute", Mute_Key, 0x01, 0x17);
34 addSharpKey("tv-display", Info_Key, 0x01, 0x1B);
36 addSharpKey("flash", Unmapped_Key, 0x01, 0x4F);
40 // The following is just a guess:
41 AdmiralTV2::AdmiralTV2(
49 threadableProtocol = new RC5Protocol(guiObject, index);
51 addKey("0", Zero_Key, 0x1000, 13);
52 addKey("1", One_Key, 0x1001, 13);
53 addKey("2", Two_Key, 0x1002, 13);
54 addKey("3", Three_Key, 0x1003, 13);
55 addKey("4", Four_Key, 0x1004, 13);
56 addKey("5", Five_Key, 0x1005, 13);
57 addKey("6", Six_Key, 0x1006, 13);
58 addKey("7", Seven_Key, 0x1007, 13);
59 addKey("8", Eight_Key, 0x1008, 13);
60 addKey("9", Nine_Key, 0x1009, 13);
61 addKey("1-", DoubleDigit_Key, 0x100A, 13); // -/--
62 addKey("100", PlusOneHundred_Key, 0x100A, 13);
63 addKey("TV-Dash", Dash_Key, 0x100A, 13);
64 addKey("CP", Unmapped_Key, 0x100B, 13); // "C/P", "Channel/program/freq"
65 addKey("ON/OFF", Power_Key, 0x100C, 13);
66 addKey("MUTE", Mute_Key, 0x100D, 13);
67 addKey("pp", PrevChannel_Key, 0x100E, 13); // "GREEN", "Personal preference"
68 addKey("INFO", Info_Key, 0x100F, 13); // "+", "OSD"
70 addKey("VOL+", VolumeUp_Key, 0x1010, 13);
71 addKey("VOL-", VolumeDown_Key, 0x1011, 13);
72 addKey("BRIGHTNESS_UP", BrightnessUp_Key, 0x1012, 13);
73 addKey("BRIGHTNESS_DOWN", BrightnessDown_Key, 0x1013, 13);
74 addKey("CONTRAST_UP", ContrastUp_Key, 0x1014, 13);
75 addKey("CONTRAST_DOWN", ContrastDown_Key, 0x1015, 13);
76 addKey("BASS_UP", BassUp_Key, 0x1016, 13);
77 addKey("BASS_DOWN", BassDown_Key, 0x1017, 13);
78 addKey("TREBLE_UP", TrebleUp_Key, 0x1018, 13);
79 addKey("TREBLE_DOWN", TrebleDown_Key, 0x1019, 13);
80 addKey("BALANCE_RIGHT", BalanceRight_Key, 0x101A, 13);
81 addKey("BALANCE_LEFT", BalanceLeft_Key, 0x101B, 13);
83 addKey("P+", ChannelUp_Key, 0x1020, 13);
84 addKey("P-", ChannelDown_Key, 0x1021, 13);
86 addKey("PIP on/off", PIP_Key, 0x1058, 13);
87 addKey("PIP shift", PIPMove_Key, 0x1059, 13);
88 addKey("PIP/main picture swap", PIPSwap_Key, 0x105A, 13);
89 addKey("Select PIP source", PIPSource_Key, 0x105F, 13);
90 addKey("PIP Freeze", PIPPause_Key, 0x1065, 13);
91 addKey("PIP Freeze", PIPSize_Key, 0x1068, 13);
92 addKey("red", Red_Key, 0x106B, 13);
93 addKey("green", Green_Key, 0x106C, 13);
94 addKey("yellow", Yellow_Key, 0x106D, 13);
95 addKey("cyan", Blue_Key, 0x106E, 13);
99 AdmiralVCR1::AdmiralVCR1(
107 threadableProtocol = new SharpProtocol(guiObject, index, true);
109 addSharpKey("vcr-1", One_Key, 0x03, 0x01);
110 addSharpKey("vcr-2", Two_Key, 0x03, 0x02);
111 addSharpKey("vcr-3", Three_Key, 0x03, 0x03);
112 addSharpKey("vcr-4", Four_Key, 0x03, 0x04);
113 addSharpKey("vcr-5", Five_Key, 0x03, 0x05);
114 addSharpKey("vcr-6", Six_Key, 0x03, 0x06);
115 addSharpKey("vcr-7", Seven_Key, 0x03, 0x07);
116 addSharpKey("vcr-8", Eight_Key, 0x03, 0x08);
117 addSharpKey("vcr-9", Nine_Key, 0x03, 0x09);
118 addSharpKey("vcr-0", Zero_Key, 0x03, 0x0A);
119 addSharpKey("child_lock", Unmapped_Key, 0x03, 0x0D);
121 addSharpKey("vcr-+", ChannelUp_Key, 0x03, 0x11);
122 addSharpKey("vcr--", ChannelDown_Key, 0x03, 0x12);
123 addSharpKey("tv/vcr", Unmapped_Key, 0x03, 0x13);
124 addSharpKey("vcr-power", Power_Key, 0x03, 0x16);
125 addSharpKey("menu", Menu_Key, 0x03, 0x1D);
126 addSharpKey("tape_speed", VHSSpeed_Key, 0x03, 0x1F);
128 addSharpKey("ff", FastForward_Key, 0x03, 0x21);
129 addSharpKey("play", Play_Key, 0x03, 0x22);
130 addSharpKey("rew", Rewind_Key, 0x03, 0x23);
131 addSharpKey("pause", Pause_Key, 0x03, 0x25);
132 addSharpKey("stop", Stop_Key, 0x03, 0x27);
133 addSharpKey("rec", Record_Key, 0x03, 0x28);
134 addSharpKey("slow", Slow_Key, 0x03, 0x29);
135 addSharpKey("dpss+", Unmapped_Key, 0x03, 0x2F);
137 addSharpKey("dpss-", Unmapped_Key, 0x03, 0x30);
138 addSharpKey("eject", Eject_Key, 0x03, 0x33);
139 addSharpKey("vcr-input", Input_Key, 0x03, 0x34);
141 addSharpKey("auto_review", Unmapped_Key, 0x03, 0x83);
142 addSharpKey("cancel", Clear_Key, 0x03, 0x84);
143 addSharpKey("vcr-100", PlusOneHundred_Key, 0x03, 0x88);
144 addSharpKey("vcr-display", Info_Key, 0x03, 0x8C);
145 addSharpKey("on_screen", Unmapped_Key, 0x03, 0x8D);
147 addSharpKey("add/erase", Unmapped_Key, 0x03, 0xB5);