Exemplo n.º 1
0
void WestinghouseTV2::populateProtocol(
  QObject *guiObject)
{
  if (threadableProtocol)
  {
    // If the pointer is not null, the keyset must already be populated.
    return;
  }

  threadableProtocol = new SIRCProtocol(guiObject, index);

  addSIRC12Key("1", One_Key, 0x01, 0x00);
  addSIRC12Key("2", Two_Key, 0x01, 0x01);
  addSIRC12Key("3", Three_Key, 0x01, 0x02);
  addSIRC12Key("4", Four_Key, 0x01, 0x03);
  addSIRC12Key("5", Five_Key, 0x01, 0x04);
  addSIRC12Key("6", Six_Key, 0x01, 0x05);
  addSIRC12Key("7", Seven_Key, 0x01, 0x06);
  addSIRC12Key("8", Eight_Key, 0x01, 0x07);
  addSIRC12Key("9", Nine_Key, 0x01, 0x08);
  addSIRC12Key("0", Zero_Key, 0x01, 0x09);
  addSIRC12Key(".", Unmapped_Key, 0x01, 0x0A);
  addSIRC12Key("EnterNumPad", Enter_Key, 0x01, 0x0B);
  addSIRC12Key("CC", Captions_Key, 0x01, 0x0C);
  addSIRC12Key("EPG", Guide_Key, 0x01, 0x0E);
  addSIRC12Key("Ch+", ChannelUp_Key, 0x01, 0x10);
  addSIRC12Key("Ch-", ChannelDown_Key, 0x01, 0x11);
  addSIRC12Key("Vol+", VolumeUp_Key, 0x01, 0x12);
  addSIRC12Key("Vol-", VolumeDown_Key, 0x01, 0x13);
  addSIRC12Key("Mute", Mute_Key, 0x01, 0x14);
  addSIRC12Key("Power", Power_Key, 0x01, 0x15);
  addSIRC12Key("Backlight", Unmapped_Key, 0x01, 0x18);
  addSIRC12Key("Zoom", Zoom_Key, 0x01, 0x1C);
  addSIRC12Key("TV", Unmapped_Key, 0x01, 0x24);
  addSIRC12Key("Input", Input_Key, 0x01, 0x25);
  addSIRC12Key("Right", Right_Key, 0x01, 0x33);
  addSIRC12Key("Left", Left_Key, 0x01, 0x34);
  addSIRC12Key("Sleep", Sleep_Key, 0x01, 0x36);
  addSIRC12Key("Retry", Unmapped_Key, 0x01, 0x3B);
  addSIRC12Key("Info", Info_Key, 0x01, 0x3A);
  addSIRC12Key("Video", CompositeInput_Key, 0x01, 0x40);
  addSIRC12Key("HDMI", HDMIInput_Key, 0x01, 0x42);
  addSIRC12Key("PC", PCInput_Key, 0x01, 0x43);
  addSIRC12Key("DVI", HDMI2Input_Key, 0x01, 0x44);
  addSIRC12Key("YPbPr1", ComponentInput_Key, 0x01, 0x48);
  addSIRC12Key("YPbPr2", Component2Input_Key, 0x01, 0x49);
  addSIRC12Key("SVideo", SVideoInput_Key, 0x01, 0x4D);
  addSIRC12Key("PIP", PIP_Key, 0x01, 0x5B);
  addSIRC12Key("PIPSwap", PIPSwap_Key, 0x01, 0x5F);
  addSIRC12Key("Menu", Menu_Key, 0x01, 0x60);
  addSIRC12Key("EnterNavigation", Select_Key, 0x01, 0x65);
  addSIRC12Key("A", Unmapped_Key, 0x01, 0x6A);
  addSIRC12Key("B", Unmapped_Key, 0x01, 0x6B);
  addSIRC12Key("C", Unmapped_Key, 0x01, 0x6C);
  addSIRC12Key("Up", Up_Key, 0x01, 0x74);
  addSIRC12Key("Down", Down_Key, 0x01, 0x75);
}
Exemplo n.º 2
0
void LifetecTV1::populateProtocol(
  QObject *guiObject)
{
  if (threadableProtocol)
  {
    // Keyset already populated.
    return;
  }

  threadableProtocol = new SIRCProtocol(guiObject, index);

  connect(
    threadableProtocol,
    SIGNAL(errorMessage(QString)),
    this,
    SIGNAL(errorMessage(QString)));

  addSIRC12Key("1", One_Key, 0x01, 0x00);
  addSIRC12Key("2", Two_Key, 0x01, 0x01);
  addSIRC12Key("3", Three_Key, 0x01, 0x02);
  addSIRC12Key("4", Four_Key, 0x01, 0x03);
  addSIRC12Key("5", Five_Key, 0x01, 0x04);
  addSIRC12Key("6", Six_Key, 0x01, 0x05);
  addSIRC12Key("7", Seven_Key, 0x01, 0x06);
  addSIRC12Key("8", Eight_Key, 0x01, 0x07);
  addSIRC12Key("9", Nine_Key, 0x01, 0x08);
  addSIRC12Key("0", Zero_Key, 0x01, 0x09);
  addSIRC12Key("power", Power_Key, 0x01, 0x15);
  addSIRC12Key("prog+", ChannelUp_Key, 0x01, 0x10);
  addSIRC12Key("prog-", ChannelDown_Key, 0x01, 0x11);
  addSIRC12Key("vol-", VolumeDown_Key, 0x01, 0x13);
  addSIRC12Key("vol+", VolumeUp_Key, 0x01, 0x12);
  addSIRC12Key("tonaus", Mute_Key, 0x01, 0x14);
  addSIRC12Key("menu", Menu_Key, 0x01, 0x60);
  addSIRC12Key("exit", Exit_Key, 0x01, 0x34);
  addSIRC12Key("links", Left_Key, 0x01, 0x62);
  addSIRC12Key("rechts", Right_Key, 0x01, 0x61);
  addSIRC12Key("hoch", Up_Key, 0x01, 0x74);
  addSIRC12Key("runter", Down_Key, 0x01, 0x75);
  addSIRC12Key("ok", Select_Key, 0x01, 0x65);
  addSIRC12Key("text", Unmapped_Key, 0x01, 0x3F);
  addSIRC12Key("textaus", Unmapped_Key, 0x01, 0x38);
  addSIRC12Key("texttransparent", Unmapped_Key, 0x01, 0x5B);
  addSIRC12Key("text+", Unmapped_Key, 0x01, 0x3A);
  addSIRC12Key("textseitenscrolling", Unmapped_Key, 0x03, 0x4A);
  addSIRC12Key("rew", Rewind_Key, 0x03, 0x4C);
  addSIRC12Key("play", Play_Key, 0x03, 0x4E);
  addSIRC12Key("f.f.", FastForward_Key, 0x03, 0x4F);
  addSIRC12Key("rec", Record_Key, 0x01, 0x5B);
  addSIRC12Key("stop", Stop_Key, 0x03, 0x4D);
  addSIRC12Key("pause", Pause_Key, 0x03, 0x48);
}