2 #include "protocols/dishprotocol.h"
4 DishReceiver1::DishReceiver1(
14 void DishReceiver1::populateProtocol(
17 if (threadableProtocol)
19 // If the pointer is not null, the keyset must already be populated.
23 threadableProtocol = new DishProtocol(guiObject, index);
27 addDishKey("info", Info_Key, 0x00, 0x00);
28 addDishKey("power_on", PowerOn_Key, 0x01, 0x00);
29 addDishKey("power", Power_Key, 0x02, 0x00);
30 addDishKey("1", One_Key, 0x04, 0x00);
31 addDishKey("2", Two_Key, 0x05, 0x00);
32 addDishKey("3", Three_Key, 0x06, 0x00);
33 addDishKey("4", Four_Key, 0x08, 0x00);
34 addDishKey("5", Five_Key, 0x09, 0x00);
35 addDishKey("6", Six_Key, 0x0A, 0x00);
36 addDishKey("menu", Menu_Key, 0x0B, 0x00);
37 addDishKey("7", Seven_Key, 0x0C, 0x00);
38 addDishKey("8", Eight_Key, 0x0D, 0x00);
39 addDishKey("9", Nine_Key, 0x0E, 0x00);
41 addDishKey("select", Select_Key, 0x10, 0x00); // "OK", "ENTER"
42 addDishKey("select", Enter_Key, 0x10, 0x00); // "OK", "ENTER"
43 addDishKey("0", Zero_Key, 0x11, 0x00);
44 addDishKey("cancel", Exit_Key, 0x12, 0x00); // "Exit"
45 addDishKey("guide", Guide_Key, 0x14, 0x00);
46 // addDishKey("mute", Mute_Key, 0x15, 0x00);
47 addDishKey("livetv", LiveTV_Key, 0x16, 0x00); // "view"
48 addDishKey("tv_vcr", Input_Key, 0x17, 0x00); // "TV/VIDEO", "input"
49 addDishKey("right", Right_Key, 0x18, 0x00); // "VolUp"
50 // addDishKey("right", VolumeUp_Key, 0x18, 0x00); // "VolUp"
51 addDishKey("up", Up_Key, 0x1A, 0x00); // "ChanUp"
52 addDishKey("up", ChannelUp_Key, 0x1A, 0x00); // "ChanUp"
53 addDishKey("recall", PrevChannel_Key, 0x1B, 0x00); // "prev"
54 addDishKey("left", Left_Key, 0x1C, 0x00); // "VolDown"
55 // addDishKey("left", VolumeDown_Key, 0x1C, 0x00); // "VolDown"
56 addDishKey("down", Down_Key, 0x1E, 0x00); // "ChanDown"
57 addDishKey("down", ChannelDown_Key, 0x1E, 0x00); // "ChanDown"
58 addDishKey("record", Record_Key, 0x1F, 0x00);
60 addDishKey("pause", Pause_Key, 0x20, 0x00);
61 addDishKey("stop", Stop_Key, 0x21, 0x00);
62 addDishKey("sys_info", Unmapped_Key, 0x24, 0x00);
63 addDishKey("asterisk", Unmapped_Key, 0x25, 0x00); // "*/ptv_list"
64 addDishKey("pound", Unmapped_Key, 0x26, 0x00); // "#/search"
65 addDishKey("power_off", PowerOff_Key, 0x27, 0x00);
66 addDishKey("sat", Unmapped_Key, 0x29, 0x00);
67 addDishKey("red", Red_Key, 0x2E, 0x00);
68 addDishKey("greenR", Unmapped_Key, 0x2F, 0x00);
70 addDishKey("green", Green_Key, 0x30, 0x00);
71 addDishKey("yellow", Yellow_Key, 0x31, 0x00);
72 addDishKey("blue", Blue_Key, 0x32, 0x00);
73 addDishKey("dish_home", Unmapped_Key, 0x34, 0x00);
74 addDishKey("sys_info2", Unmapped_Key, 0x36, 0x00);
75 addDishKey("dish_home2", Unmapped_Key, 0x38, 0x00);
77 addDishKey("mute", Mute_Key, 0x15, 0x01);
78 addDishKey("vol+", VolumeUp_Key, 0x19, 0x01);
79 addDishKey("vol-", VolumeDown_Key, 0x1D, 0x01);
80 addDishKey("tv", Unmapped_Key, 0x2A, 0x01);
82 addDishKey("play", Play_Key, 0x03, 0x10);
83 addDishKey("PAGEDN", PageDown_Key, 0x07, 0x10);
84 addDishKey("PAGEUP", PageUp_Key, 0x0F, 0x10);
86 addDishKey("rew", Rewind_Key, 0x31, 0x10);
87 addDishKey("fwd", Unmapped_Key, 0x32, 0x10);
88 addDishKey("dish", Unmapped_Key, 0x34, 0x10);
89 addDishKey("skip_back", Replay_Key, 0x36, 0x10);
90 addDishKey("skip_fwd", Advance_Key, 0x37, 0x10);
91 addDishKey("dvr", HDDInput_Key, 0x39, 0x10);
92 addDishKey("pip", PIP_Key, 0x3A, 0x10);
93 addDishKey("position", PIPMove_Key, 0x3B, 0x10);
94 addDishKey("swap", PIPSwap_Key, 0x3D, 0x10);
98 DishReceiver1a::DishReceiver1a(
100 : DishReceiver1(index)
102 setKeysetName("Sat Keyset 1 mode 2");
106 void DishReceiver1a::populateProtocol(
109 if (threadableProtocol)
111 // If the pointer is not null, the keyset must already be populated.
115 DishReceiver1::populateProtocol(guiObject);
121 DishReceiver1b::DishReceiver1b(
123 : DishReceiver1(index)
125 setKeysetName("Sat Keyset 1 mode 3");
129 void DishReceiver1b::populateProtocol(
132 if (threadableProtocol)
134 // If the pointer is not null, the keyset must already be populated.
138 DishReceiver1::populateProtocol(guiObject);
144 DishReceiver1c::DishReceiver1c(
146 : DishReceiver1(index)
148 setKeysetName("Sat Keyset 1 mode 4");
152 void DishReceiver1c::populateProtocol(
155 if (threadableProtocol)
157 // If the pointer is not null, the keyset must already be populated.
161 DishReceiver1::populateProtocol(guiObject);
167 DishReceiver1d::DishReceiver1d(
169 : DishReceiver1(index)
171 setKeysetName("Sat Keyset 1 mode 5");
175 void DishReceiver1d::populateProtocol(
178 if (threadableProtocol)
180 // If the pointer is not null, the keyset must already be populated.
184 DishReceiver1::populateProtocol(guiObject);
190 DishReceiver1e::DishReceiver1e(
192 : DishReceiver1(index)
194 setKeysetName("Sat Keyset 1 mode 6");
198 void DishReceiver1e::populateProtocol(
201 if (threadableProtocol)
203 // If the pointer is not null, the keyset must already be populated.
207 DishReceiver1::populateProtocol(guiObject);
213 DishReceiver1f::DishReceiver1f(
215 : DishReceiver1(index)
217 setKeysetName("Sat Keyset 1 mode 7");
221 void DishReceiver1f::populateProtocol(
224 if (threadableProtocol)
226 // If the pointer is not null, the keyset must already be populated.
230 DishReceiver1::populateProtocol(guiObject);
236 DishReceiver1g::DishReceiver1g(
238 : DishReceiver1(index)
240 setKeysetName("Sat Keyset 1 mode 8");
244 void DishReceiver1g::populateProtocol(
247 if (threadableProtocol)
249 // If the pointer is not null, the keyset must already be populated.
253 DishReceiver1::populateProtocol(guiObject);
259 DishReceiver1h::DishReceiver1h(
261 : DishReceiver1(index)
263 setKeysetName("Sat Keyset 1 mode 9");
267 void DishReceiver1h::populateProtocol(
270 if (threadableProtocol)
272 // If the pointer is not null, the keyset must already be populated.
276 DishReceiver1::populateProtocol(guiObject);
282 DishReceiver1i::DishReceiver1i(
284 : DishReceiver1(index)
286 setKeysetName("Sat Keyset 1 mode 10");
290 void DishReceiver1i::populateProtocol(
293 if (threadableProtocol)
295 // If the pointer is not null, the keyset must already be populated.
299 DishReceiver1::populateProtocol(guiObject);
305 DishReceiver1j::DishReceiver1j(
307 : DishReceiver1(index)
309 setKeysetName("Sat Keyset 1 mode 11");
313 void DishReceiver1j::populateProtocol(
316 if (threadableProtocol)
318 // If the pointer is not null, the keyset must already be populated.
322 DishReceiver1::populateProtocol(guiObject);
328 DishReceiver1k::DishReceiver1k(
330 : DishReceiver1(index)
332 setKeysetName("Sat Keyset 1 mode 12");
336 void DishReceiver1k::populateProtocol(
339 if (threadableProtocol)
341 // If the pointer is not null, the keyset must already be populated.
345 DishReceiver1::populateProtocol(guiObject);
351 DishReceiver1l::DishReceiver1l(
353 : DishReceiver1(index)
355 setKeysetName("Sat Keyset 1 mode 13");
359 void DishReceiver1l::populateProtocol(
362 if (threadableProtocol)
364 // If the pointer is not null, the keyset must already be populated.
368 DishReceiver1::populateProtocol(guiObject);
374 DishReceiver1m::DishReceiver1m(
376 : DishReceiver1(index)
378 setKeysetName("Sat Keyset 1 mode 14");
382 void DishReceiver1m::populateProtocol(
385 if (threadableProtocol)
387 // If the pointer is not null, the keyset must already be populated.
391 DishReceiver1::populateProtocol(guiObject);
397 DishReceiver1n::DishReceiver1n(
399 : DishReceiver1(index)
401 setKeysetName("Sat Keyset 1 mode 15");
405 void DishReceiver1n::populateProtocol(
408 if (threadableProtocol)
410 // If the pointer is not null, the keyset must already be populated.
414 DishReceiver1::populateProtocol(guiObject);
420 DishReceiver1o::DishReceiver1o(
422 : DishReceiver1(index)
424 setKeysetName("Sat Keyset 1 mode 16");
428 void DishReceiver1o::populateProtocol(
431 if (threadableProtocol)
433 // If the pointer is not null, the keyset must already be populated.
437 DishReceiver1::populateProtocol(guiObject);