void CiscoSTB3::populateProtocol( QObject *guiObject) { if (threadableProtocol) { // Keyset already populated. return; } threadableProtocol = new Nokia32Protocol(guiObject, index); setPreData(0x2480, 16); setPostData(0x26, 7); addKey("0", Zero_Key, 0x00, 8); addKey("1", One_Key, 0x01, 8); addKey("2", Two_Key, 0x02, 8); addKey("3", Three_Key, 0x03, 8); addKey("4", Four_Key, 0x04, 8); addKey("5", Five_Key, 0x05, 8); addKey("6", Six_Key, 0x06, 8); addKey("7", Seven_Key, 0x07, 8); addKey("8", Eight_Key, 0x08, 8); addKey("9", Nine_Key, 0x09, 8); addKey("jump", Unmapped_Key, 0x0A, 8); addKey("power", Power_Key, 0x0C, 8); addKey("info", Info_Key, 0x0F, 8); addKey("vol up", VolumeUp_Key, 0x10, 8); addKey("vol down", VolumeDown_Key, 0x11, 8); addKey("channel up", ChannelUp_Key, 0x20, 8); addKey("channel down", ChannelDown_Key, 0x21, 8); addKey("fast fwd", FastForward_Key, 0x28, 8); addKey("last (prev ch)", PrevChannel_Key, 0x29, 8); addKey("rewind", Rewind_Key, 0x29, 8); addKey("play", Play_Key, 0x2C, 8); addKey("pause", Pause_Key, 0x30, 8); addKey("stop", Stop_Key, 0x31, 8); addKey("record", Record_Key, 0x37, 8); addKey("a", Unmapped_Key, 0x38, 8); addKey("b", Unmapped_Key, 0x39, 8); addKey("multiscreen", PIP_Key, 0x3B, 8); // might be wrong addKey("search", Unmapped_Key, 0x40, 8); addKey("replay", Replay_Key, 0x4D, 8); addKey("menu", Menu_Key, 0x54, 8); addKey("exit", Exit_Key, 0x55, 8); addKey("up arrow", Up_Key, 0x58, 8); addKey("down arrow", Down_Key, 0x59, 8); addKey("left arrow", Left_Key, 0x5A, 8); addKey("right arrow", Right_Key, 0x5B, 8); addKey("select", Select_Key, 0x5C, 8); addKey("c", Unmapped_Key, 0x86, 8); addKey("advance", Advance_Key, 0x9C, 8); addKey("clear", Clear_Key, 0x9E, 8); addKey("program guide", Guide_Key, 0xCC, 8); addKey("interact", Unmapped_Key, 0xDA, 8); addKey("tvvideo", Input_Key, 0xE8, 8); addKey("recording", Record_Key, 0xF1, 8); addKey("livetv", LiveTV_Key, 0xF2, 8); addKey("phone", Unmapped_Key, 0xF9, 8); }
void KathreinSat2::populateProtocol( QObject *guiObject) { if (threadableProtocol) { // Keyset already populated return; } threadableProtocol = new Nokia32Protocol(guiObject, index); setPreData(0x2290, 16); setPostData(0x00, 7); addKey("0", Zero_Key, 0x00, 8); addKey("1", One_Key, 0x01, 8); addKey("2", Two_Key, 0x02, 8); addKey("3", Three_Key, 0x03, 8); addKey("4", Four_Key, 0x04, 8); addKey("5", Five_Key, 0x05, 8); addKey("6", Six_Key, 0x06, 8); addKey("7", Seven_Key, 0x07, 8); addKey("8", Eight_Key, 0x08, 8); addKey("9", Nine_Key, 0x09, 8); addKey("power", Power_Key, 0x0C, 8); addKey("mute", Mute_Key, 0x0D, 8); addKey("+10{-/--}", DoubleDigit_Key, 0x0F, 8); addKey("vol+", VolumeUp_Key, 0x10, 8); addKey("vol-", VolumeDown_Key, 0x11, 8); addKey("ch+", ChannelUp_Key, 0x1E, 8); addKey("ch-", ChannelDown_Key, 0x1F, 8); addKey("FFWD", FastForward_Key, 0x20, 8); addKey("REW", Rewind_Key, 0x21, 8); addKey("pause", Pause_Key, 0x31, 8); addKey("B/STOP", Stop_Key, 0x31, 8); addKey("A", Record_Key, 0x37, 8); // "Record" addKey("PLAY", Play_Key, 0x38, 8); addKey("PAUSE", Pause_Key, 0x39, 8); addKey("rewind", Teletext_Key, 0x3C, 8); // "Teletext" addKey("C", Menu_Key, 0x54, 8); // "Menu" addKey("exit", Exit_Key, 0x55, 8); addKey("up", Up_Key, 0x58, 8); addKey("down", Down_Key, 0x59, 8); addKey("left", Left_Key, 0x5A, 8); addKey("right", Right_Key, 0x5B, 8); addKey("select", Select_Key, 0x5C, 8); addKey("ffwd", Red_Key, 0x6D, 8); // "Red" addKey("stop", Green_Key, 0x6E, 8); // "Green" addKey("record", Yellow_Key, 0x6F, 8); // "Yellow" addKey("auto", Blue_Key, 0x70, 8); // "Blue" addKey("menu", Guide_Key, 0xCC, 8); // "Guide" }
static Ref<Inspector::Protocol::Network::Request> buildObjectForResourceRequest(const ResourceRequest& request) { auto requestObject = Inspector::Protocol::Network::Request::create() .setUrl(request.url().string()) .setMethod(request.httpMethod()) .setHeaders(buildObjectForHeaders(request.httpHeaderFields())) .release(); if (request.httpBody() && !request.httpBody()->isEmpty()) requestObject->setPostData(request.httpBody()->flattenToString()); return WTF::move(requestObject); }
static Ref<Inspector::Protocol::Network::Request> buildObjectForResourceRequest(const ResourceRequest& request) { auto requestObject = Inspector::Protocol::Network::Request::create() .setUrl(request.url().string()) .setMethod(request.httpMethod()) .setHeaders(buildObjectForHeaders(request.httpHeaderFields())) .release(); if (request.httpBody() && !request.httpBody()->isEmpty()) { Vector<char> bytes; request.httpBody()->flatten(bytes); requestObject->setPostData(String::fromUTF8WithLatin1Fallback(bytes.data(), bytes.size())); } return requestObject; }
void AppleWhiteRemote::populateProtocol( QObject *guiObject) { if (threadableProtocol) { // If the pointer is not null, the keyset must already be populated. return; } // Set up the threadable object: LIRCProtocol *lp = new LIRCProtocol( guiObject, index, 560, 560, 560, 1680, 110000, true); threadableProtocol = lp; lp->setHeaderPair(9000, 4500); lp->setTrailerPulse(560); lp->setRepeatPair(9000, 2250); setPreData(0x77e1, 16); setPostData(0xc5, 8); // Menu oriented: addKey("menu", Menu_Key, 0x40, 8); addKey("+", Up_Key, 0xD0, 8); addKey("-", Down_Key, 0xB0, 8); addKey("|<<", Left_Key, 0x10, 8); addKey(">>|", Right_Key, 0xE0, 8); addKey(">||", Select_Key, 0x20, 8); // Media oriented: addKey("+", VolumeUp_Key, 0xD0, 8); addKey("-", VolumeDown_Key, 0xB0, 8); addKey("|<<", Rewind_Key, 0x10, 8); addKey(">>|", FastForward_Key, 0xE0, 8); addKey(">||", Play_Key, 0x20, 8); addKey(">||", Pause_Key, 0x20, 8); addKey("|<<", Previous_Key, 0x10, 8); addKey(">>|", Next_Key, 0xE0, 8); }
void SamsungSTB5::populateProtocol( QObject *guiObject) { if (threadableProtocol) { // Keyset already populated. return; } threadableProtocol = new Nokia32Protocol(guiObject, index); connect( threadableProtocol, SIGNAL(errorMessage(QString)), this, SIGNAL(errorMessage(QString))); setPreData(0x2670, 16); setPostData(0x26, 7); addKey("num_0", Zero_Key, 0x00, 8); addKey("num_1", One_Key, 0x01, 8); addKey("num_2", Two_Key, 0x02, 8); addKey("num_3", Three_Key, 0x03, 8); addKey("num_4", Four_Key, 0x04, 8); addKey("num_5", Five_Key, 0x05, 8); addKey("num_6", Six_Key, 0x06, 8); addKey("num_7", Seven_Key, 0x07, 8); addKey("num_8", Eight_Key, 0x08, 8); addKey("num_9", Nine_Key, 0x09, 8); addKey("Power", Power_Key, 0x0C, 8); addKey("Mute", Mute_Key, 0x0D, 8); addKey("Info", Info_Key, 0x0F, 8); addKey("VOL+", VolumeUp_Key, 0x10, 8); addKey("VOL-", VolumeDown_Key, 0x11, 8); addKey("CH+", ChannelUp_Key, 0x20, 8); addKey("CH-", ChannelDown_Key, 0x21, 8); addKey("ffwd", FastForward_Key, 0x28, 8); addKey("rewind", Rewind_Key, 0x29, 8); addKey("Play", Play_Key, 0x2C, 8); addKey("Pause", Pause_Key, 0x2C, 8); addKey("Stop", Stop_Key, 0x31, 8); addKey("Record", Record_Key, 0x37, 8); addKey("Teletext", Teletext_Key, 0x3C, 8); addKey("TV/Radio", TunerInput_Key, 0x43, 8); addKey("Menu", Menu_Key, 0x54, 8); addKey("up_arrow", Up_Key, 0x58, 8); addKey("down_arrow", Down_Key, 0x59, 8); addKey("left_arrow", Left_Key, 0x5A, 8); addKey("right_arrow", Right_Key, 0x5B, 8); addKey("Select", Select_Key, 0x5C, 8); addKey("Red", Red_Key, 0x6D, 8); addKey("Green", Green_Key, 0x6E, 8); addKey("Yellow", Yellow_Key, 0x6F, 8); addKey("Blue", Blue_Key, 0x70, 8); addKey("Search", Unmapped_Key, 0x81, 8); addKey("Last_ch", PrevChannel_Key, 0x83, 8); addKey("TV", AntennaInput_Key, 0xA6, 8); addKey("TV/Video", AuxInput_Key, 0xA7, 8); addKey("Guide", Guide_Key, 0xCC, 8); addKey("Option", Unmapped_Key, 0xDB, 8); addKey("exit", Exit_Key, 0xEE, 8); addKey("Recordings", Unmapped_Key, 0xF0, 8); addKey("Select Video", Unmapped_Key, 0xFD, 8); }
void JVCSat2::populateProtocol( QObject *guiObject) { if (threadableProtocol) { // If the pointer is not null, the keyset must already be populated. return; } LIRCProtocol *lp = new LIRCProtocol( guiObject, index, 440, 2780, 440, 1645, 6115, false); threadableProtocol = lp; connect( threadableProtocol, SIGNAL(errorMessage(QString)), this, SIGNAL(errorMessage(QString))); lp->setHeaderPair(525, 6045); lp->setTrailerPulse(450); // lp->setMinimumRepetitions(6); lp->setFullHeadlessRepeat(true); lp->setCarrierFrequency(56000); lp->setDutyCycle(32); setPostData(0x000, 10); addKey("info", Info_Key, 0x0, 6); addKey("power_on", PowerOn_Key, 0x1, 6); addKey("power", Power_Key, 0x2, 6); addKey("1", One_Key, 0x4, 6); addKey("2", Two_Key, 0x5, 6); addKey("3", Three_Key, 0x6, 6); addKey("4", Four_Key, 0x8, 6); addKey("5", Five_Key, 0x9, 6); addKey("6", Six_Key, 0x10, 6); addKey("7", Seven_Key, 0x12, 6); addKey("8", Eight_Key, 0x13, 6); addKey("9", Nine_Key, 0x14, 6); addKey("0", Zero_Key, 0x17, 6); addKey("menu", Menu_Key, 0x11, 6); addKey("select", Select_Key, 0x16, 6); addKey("cancel", Exit_Key, 0x18, 6); addKey("guide", Guide_Key, 0x20, 6); addKey("view", Unmapped_Key, 0x22, 6); addKey("tv_vcr", Input_Key, 0x23, 6); addKey("right", Right_Key, 0x24, 6); addKey("up", Up_Key, 0x26, 6); addKey("recall", PrevChannel_Key, 0x27, 6); addKey("left", Left_Key, 0x28, 6); addKey("down", Down_Key, 0x30, 6); addKey("record", Record_Key, 0x31, 6); addKey("pause", Pause_Key, 0x32, 6); addKey("stop", Stop_Key, 0x33, 6); addKey("sys_info", Info_Key, 0x36, 6); addKey("asterisk", Unmapped_Key, 0x37, 6); addKey("pound", Unmapped_Key, 0x38, 6); addKey("power_off", PowerOff_Key, 0x39, 6); addKey("sat", Unmapped_Key, 0x41, 6); addKey("dish_home", Unmapped_Key, 0x52, 6); addKey("sys_info2", Unmapped_Key, 0x54, 6); addKey("dish_home2", Unmapped_Key, 0x56, 6); }
void AstroSTB1::populateProtocol( QObject *guiObject) { if (threadableProtocol) { // Keyset already populated. return; } threadableProtocol = new Nokia32Protocol(guiObject, index); setPreData(0x2250, 16); setPostData(0x27, 7); addKey("0", Zero_Key, 0x00, 8); addKey("1", One_Key, 0x01, 8); addKey("2", Two_Key, 0x02, 8); addKey("3", Three_Key, 0x03, 8); addKey("4", Four_Key, 0x04, 8); addKey("5", Five_Key, 0x05, 8); addKey("6", Six_Key, 0x06, 8); addKey("7", Seven_Key, 0x07, 8); addKey("8", Eight_Key, 0x08, 8); addKey("9", Nine_Key, 0x09, 8); addKey("KEY_POWER", Power_Key, 0x0C, 8); addKey("KEY_MUTE", Mute_Key, 0x0D, 8); addKey("KEY_INFO", Info_Key, 0x0F, 8); addKey("KEY_VOLUMEUP", VolumeUp_Key, 0x10, 8); addKey("KEY_VOLUMEDOWN", VolumeDown_Key, 0x11, 8); addKey("KEY_CHANNELUP", ChannelUp_Key, 0x20, 8); addKey("KEY_CHANNELDOWN", ChannelDown_Key, 0x21, 8); addKey("KEY_TEXT", Teletext_Key, 0x3C, 8); addKey("KEY_SUBTITLE", Captions_Key, 0x4B, 8); addKey("KEY_AUDIO", Audio_Key, 0x4E, 8); addKey("KEY_MENU", Menu_Key, 0x54, 8); addKey("KEY_UP", Up_Key, 0x58, 8); addKey("KEY_DOWN", Down_Key, 0x59, 8); addKey("KEY_LEFT", Left_Key, 0x5A, 8); addKey("KEY_RIGHT", Right_Key, 0x5B, 8); addKey("KEY_OK", Select_Key, 0x5C, 8); addKey("KEY_RED", Red_Key, 0x6D, 8); addKey("KEY_GREEN", Green_Key, 0x6E, 8); addKey("KEY_YELLOW", Yellow_Key, 0x6F, 8); addKey("KEY_BLUE", Blue_Key, 0x70, 8); addKey("KEY_HELP", Unmapped_Key, 0x81, 8); addKey("KEY_EXIT", Exit_Key, 0x83, 8); addKey("KEY_FAVORITES", Favorites_Key, 0x84, 8); addKey("KEY_BACK", PrevChannel_Key, 0xA9, 8); //? addKey("KEY_SHOP", Unmapped_Key, 0xAA, 8); addKey("KEY_EPG", Guide_Key, 0xCC, 8); addKey("KEY_MAIL", Unmapped_Key, 0xF3, 8); addKey("KEY_KPASTERISK", Unmapped_Key, 0xF6, 8); }