当前位置: 首页>>代码示例>>C++>>正文


C++ setPreData函数代码示例

本文整理汇总了C++中setPreData函数的典型用法代码示例。如果您正苦于以下问题:C++ setPreData函数的具体用法?C++ setPreData怎么用?C++ setPreData使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了setPreData函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: NECXProtocol

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

  threadableProtocol = new NECXProtocol(guiObject, index, true);

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

  setPreData(0xA0A0, 16);

  addKey("1", One_Key, 0x01, 8);
  addKey("5", Five_Key, 0x02, 8);
  addKey("9", Nine_Key, 0x03, 8);
  addKey("rew", Rewind_Key, 0x04, 8);
  addKey("prev", Previous_Key, 0x05, 8);
  addKey("intro", Unmapped_Key, 0x06, 8);
  addKey("eject", Eject_Key, 0x07, 8);
  addKey("2", Two_Key, 0x09, 8);
  addKey("6", Six_Key, 0x0A, 8);
  addKey("0", Zero_Key, 0x0B, 8);
  addKey("fwd", FastForward_Key, 0x0C, 8);
  addKey("next", Next_Key, 0x0D, 8);
  addKey("rnd", Random_Key, 0x0E, 8);
  addKey("remain", Unmapped_Key, 0x0F, 8);

  addKey("3", Three_Key, 0x11, 8);
  addKey("7", Seven_Key, 0x12, 8);
  addKey("onetwodash", DoubleDigit_Key, 0x13, 8);
  addKey("play", Play_Key, 0x15, 8);
  addKey("repeat", Repeat_Key, 0x16, 8);
  addKey("ab", RepeatAB_Key, 0x17, 8);
  addKey("4", Four_Key, 0x19, 8);
  addKey("8", Eight_Key, 0x1A, 8);
  addKey("prog", Program_Key, 0x1B, 8);
  addKey("stop", Stop_Key, 0x1C, 8);
  addKey("pause", Pause_Key, 0x1D, 8);
  addKey("skip", NextDisc_Key, 0x1E, 8);

  addKey("light", Info_Key, 0x47, 8);
}
开发者ID:jpietrzak8,项目名称:Pierogi,代码行数:49,代码来源:cambridge.cpp

示例2: NECProtocol

void VenturerTV1::populateProtocol(
  QObject *guiObject)
{
  if (threadableProtocol)
  {
    // Keyset already populated.
    return;
  }

  threadableProtocol = new NECProtocol(guiObject, index, false, true);

  setPreData(0x04, 8);

  addKey("Channel Up", ChannelUp_Key, 0x00, 8);
  addKey("Channel Down", ChannelDown_Key, 0x01, 8);
  addKey("Volume Up", VolumeUp_Key, 0x02, 8);
  addKey("Volume Down", VolumeDown_Key, 0x03, 8);
  addKey("Menu", Menu_Key, 0x04, 8);
  addKey("Sound", SoundMode_Key, 0x06, 8);
  addKey("Standby/On", Power_Key, 0x08, 8);
  addKey("Mute", Mute_Key, 0x09, 8);
  addKey("0", Zero_Key, 0x10, 8);
  addKey("1", One_Key, 0x11, 8);
  addKey("2", Two_Key, 0x12, 8);
  addKey("3", Three_Key, 0x13, 8);
  addKey("4", Four_Key, 0x14, 8);
  addKey("5", Five_Key, 0x15, 8);
  addKey("6", Six_Key, 0x16, 8);
  addKey("7", Seven_Key, 0x17, 8);
  addKey("8", Eight_Key, 0x18, 8);
  addKey("9", Nine_Key, 0x19, 8);
  addKey("Last Channel", PrevChannel_Key, 0x1A, 8);
  addKey("Red", Red_Key, 0x21, 8);
  addKey("Green", Green_Key, 0x22, 8);
  addKey("Yellow", Yellow_Key, 0x23, 8);
  addKey("Blue", Blue_Key, 0x24, 8);
  addKey("Function", Unmapped_Key, 0x25, 8);
  addKey("Subtitle", Captions_Key, 0x26, 8);
  addKey("Time", Unmapped_Key, 0x27, 8);
  addKey("Picture", PictureMode_Key, 0x28, 8);
  addKey("Display", Info_Key, 0x3A, 8);
  addKey("I/II", Audio_Key, 0x40, 8);
  addKey("TV/Text", Teletext_Key, 0x48, 8);
  addKey("Sleep", Sleep_Key, 0x4B, 8);
  addKey("Format", Unmapped_Key, 0x4C, 8);
  addKey("YUV In", Unmapped_Key, 0x50, 8);
  addKey("AV In", CompositeInput_Key, 0x5A, 8);
  addKey("Exit", Exit_Key, 0x5B, 8);
}
开发者ID:lyapova,项目名称:Pierogi,代码行数:49,代码来源:venturer.cpp

示例3: NECXProtocol

void EmersonTV2::populateProtocol(
    QObject *guiObject)
{
    if (threadableProtocol)
    {
        // Keyset already populated.
        return;
    }

    threadableProtocol = new NECXProtocol(guiObject, index, false);

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

    setPreData(0x1616, 16);

    addKey("1", One_Key, 0x00, 8);
    addKey("2", Two_Key, 0x01, 8);
    addKey("3", Three_Key, 0x02, 8);
    addKey("4", Four_Key, 0x03, 8);
    addKey("5", Five_Key, 0x04, 8);
    addKey("6", Six_Key, 0x05, 8);
    addKey("7", Seven_Key, 0x06, 8);
    addKey("8", Eight_Key, 0x07, 8);
    addKey("9", Nine_Key, 0x08, 8);
    addKey("0", Zero_Key, 0x09, 8);
    addKey("channel_plus", ChannelUp_Key, 0x0A, 8);
    addKey("channel_minus", ChannelDown_Key, 0x0B, 8);
    addKey("volume_plus", VolumeUp_Key, 0x0C, 8);
    addKey("volume_minus", VolumeDown_Key, 0x0D, 8);
    addKey("mute", Mute_Key, 0x0E, 8);
    addKey("power", Power_Key, 0x0F, 8);
    addKey("quick_view", PrevChannel_Key, 0x10, 8); // "last (prev ch)"
    addKey("sleep", Sleep_Key, 0x13, 8);
    addKey("add", Unmapped_Key, 0x14, 8);
    addKey("delete", Unmapped_Key, 0x15, 8);
    addKey("select", Select_Key, 0x16, 8);
    addKey("call", Info_Key, 0x17, 8); // "display"
    addKey("Timer Select", Unmapped_Key, 0x18, 8);
    addKey("auto", Unmapped_Key, 0x19, 8);
    addKey("channel_set", Unmapped_Key, 0x1A, 8);
    addKey("closed_caption", Captions_Key, 0x1C, 8); // "TV/CAP/TEXT"
    addKey("cc_channel", Unmapped_Key, 0x1D, 8);
    addKey("Closed Caption", Unmapped_Key, 0x1E, 8); // what is this?
    addKey("Discrete On", PowerOn_Key, 0x7E, 8);
}
开发者ID:jpietrzak8,项目名称:Pierogi,代码行数:49,代码来源:emerson.cpp

示例4: NECXProtocol

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

  threadableProtocol = new NECXProtocol(guiObject, index, true);

  setPreData(0xA2A2, 16);

  addKey("1", One_Key, 0x01, 8);
  addKey("5", Five_Key, 0x02, 8);
  addKey("9", Nine_Key, 0x03, 8);
  addKey("tuning_down", ChannelDown_Key, 0x04, 8);
  addKey("display", Info_Key, 0x05, 8); // "MODE_remain
  addKey("on/off", Power_Key, 0x06, 8);
  addKey("tuner", TunerInput_Key, 0x07, 8);
  addKey("2", Two_Key, 0x09, 8);
  addKey("6", Six_Key, 0x0A, 8);
  addKey("0", Zero_Key, 0x0B, 8);
  addKey("tuning_up", ChannelUp_Key, 0x0C, 8);
  addKey("random", Random_Key, 0x0D, 8);
  addKey("band", ToggleBand_Key, 0x0E, 8);
  addKey("cd", CDInput_Key, 0x0F, 8);

  addKey("3", Three_Key, 0x11, 8);
  addKey("7", Seven_Key, 0x12, 8);
  addKey("play/pause", Play_Key, 0x13, 8);
  addKey("play/pause", Pause_Key, 0x13, 8);
  addKey("time_program", Program_Key, 0x14, 8); // "MEMORY_clock"
  addKey("intro", Unmapped_Key, 0x15, 8);
  addKey("SLEEP", Sleep_Key, 0x17, 8);
  addKey("4", Four_Key, 0x19, 8);
  addKey("8", Eight_Key, 0x1A, 8);
  addKey("stop", Stop_Key, 0x1B, 8);
  addKey("repeat/scan", Repeat_Key, 0x1C, 8);
  addKey("repeat/scan", Scan_Key, 0x1C, 8);
  addKey("BASS", EnhancedBass_Key, 0x1D, 8);
  addKey("tape", TapeInput_Key, 0x1E, 8);
  addKey("TIMER", Timer_Key, 0x1F, 8);

  addKey("volume_up", VolumeUp_Key, 0x20, 8);
  addKey("volume_down", VolumeDown_Key, 0x60, 8);
  addKey("mute", Mute_Key, 0xA0, 8);
  addKey("+10", DoubleDigit_Key, 0xE0, 8);
}
开发者ID:lyapova,项目名称:Pierogi,代码行数:49,代码来源:grundig.cpp

示例5: NECProtocol

void MotorolaSkyDigital::populateProtocol(
  QObject *guiObject)
{
  if (threadableProtocol)
  {
    // Keyset already populated.
    return;
  }

  threadableProtocol = new NECProtocol(guiObject, index, true, true);

  setPreData(0x2F86, 16);

  addKey("chandown", ChannelDown_Key, 0x01, 8);
  addKey("1", One_Key, 0x02, 8);
  addKey("yellow", Yellow_Key, 0x04, 8);
  addKey("chanup", ChannelUp_Key, 0x07, 8);
  addKey("blue", Blue_Key, 0x09, 8);
  addKey("mute", Mute_Key, 0x0A, 8);
  addKey("3", Three_Key, 0x0C, 8);
  addKey("8", Eight_Key, 0x0D, 8);
  addKey("0", Zero_Key, 0x0E, 8);

  addKey("ok", Select_Key, 0x10, 8);
  addKey("volup", VolumeUp_Key, 0x12, 8);
  addKey("2", Two_Key, 0x13, 8);
  addKey("5", Five_Key, 0x14, 8);
  addKey("plus", Unmapped_Key, 0x15, 8);
  addKey("4", Four_Key, 0x16, 8);
  addKey("6", Six_Key, 0x17, 8);
  addKey("7", Seven_Key, 0x18, 8);
  addKey("9", Nine_Key, 0x19, 8);
  addKey("power", Power_Key, 0x1A, 8);
  addKey("voldown", VolumeDown_Key, 0x1B, 8);
  addKey("green", Green_Key, 0x1E, 8);
  addKey("red", Red_Key, 0x1F, 8);

  addKey("tv", Input_Key, 0x82, 8);
  addKey("left", Left_Key, 0x88, 8);
  addKey("back", Exit_Key, 0x89, 8);
  addKey("up", Up_Key, 0x8B, 8);
  addKey("question", Unmapped_Key, 0x8F, 8);

  addKey("down", Down_Key, 0x91, 8);
  addKey("interactive", Unmapped_Key, 0x93, 8);
  addKey("guide", Guide_Key, 0x9C, 8);
  addKey("right", Right_Key, 0x9D, 8);
}
开发者ID:lyapova,项目名称:Pierogi,代码行数:48,代码来源:motorola.cpp

示例6: AiwaProtocol

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

  threadableProtocol = new AiwaProtocol(guiObject, index);

  setPreData(0x011C, 13);

  addKey("1", One_Key, 0x00, 8);
  addKey("2", Two_Key, 0x01, 8);
  addKey("3", Three_Key, 0x02, 8);
  addKey("4", Four_Key, 0x03, 8);
  addKey("5", Five_Key, 0x04, 8);
  addKey("6", Six_Key, 0x05, 8);
  addKey("7", Seven_Key, 0x06, 8);
  addKey("8", Eight_Key, 0x07, 8);
  addKey("9", Nine_Key, 0x08, 8);
  addKey("0", Zero_Key, 0x09, 8);
  addKey("menu", Menu_Key, 0x0D, 8);
  addKey("last (prev ch)", PrevChannel_Key, 0x0E, 8);
  addKey("tv/av", Input_Key, 0x0F, 8);

  addKey("vol up", VolumeUp_Key, 0x10, 8); // "right arrow"
  addKey("vol up", Right_Key, 0x10, 8); // "right arrow"
  addKey("osd control?", Unmapped_Key, 0x11, 8);
  addKey("power", Power_Key, 0x12, 8);
  addKey("channel up", ChannelUp_Key, 0x13, 8); // "up arrow"
  addKey("channel up", Up_Key, 0x13, 8); // "up arrow"
  addKey("vol down", VolumeDown_Key, 0x14, 8); // "left arrow"
  addKey("vol down", Left_Key, 0x14, 8); // "left arrow"
  addKey("unknown-blanks screen", Unmapped_Key, 0x15, 8);
  addKey("mute", Mute_Key, 0x16, 8);
  addKey("channel down", ChannelDown_Key, 0x17, 8); // "down arrow"
  addKey("channel down", Down_Key, 0x17, 8); // "down arrow"
  addKey("display", Info_Key, 0x18, 8);
  addKey("if control", Unmapped_Key, 0x19, 8);
  addKey("crt geometry", AspectRatio_Key, 0x1A, 8);
  addKey("rating", Unmapped_Key, 0x1B, 8); // "v-chip"
  addKey("rgb control", Unmapped_Key, 0x1C, 8);
  addKey("picture control", Unmapped_Key, 0x1D, 8);
  addKey("factory reset", FactoryReset_Key, 0x1E, 8);
  addKey("test pattern", Unmapped_Key, 0x1F, 8);
}
开发者ID:lyapova,项目名称:Pierogi,代码行数:48,代码来源:haier.cpp

示例7: NECProtocol

void LifetecVCR1::populateProtocol(
  QObject *guiObject)
{
  if (threadableProtocol)
  {
    // Keyset already populated.
    return;
  }

  threadableProtocol = new NECProtocol(guiObject, index, true, false);

  setPreData(0x7B80, 16);

  addKey("power", Power_Key, 0x13, 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("0", Zero_Key, 0x00, 8);
  addKey("CH-", ChannelDown_Key, 0x0B, 8);
  addKey("CH+", ChannelUp_Key, 0x0A, 8);
  addKey("REC/OTR", Record_Key, 0x15, 8);
  addKey("PAUSE/STILL", Pause_Key, 0x1A, 8);
  addKey("<<", Rewind_Key, 0x19, 8);
  addKey("PLAY/SLOW", Play_Key, 0x16, 8);
  addKey("PLAY/SLOW", Slow_Key, 0x16, 8);
  addKey(">>", FastForward_Key, 0x18, 8);
  addKey("stop", Stop_Key, 0x17, 8);
  addKey("ENTER", Select_Key, 0x45, 8);
  addKey("INDEX", IndexSearch_Key, 0x14, 8);
  addKey("CANCEL", Clear_Key, 0x4A, 8);
  addKey("MENU", Menu_Key, 0x50, 8);
  addKey("TIMER_REC", RecordTimed_Key, 0x0D, 8);
  addKey("SHOWVIEW", Unmapped_Key, 0x1D, 8); // vhsplus+, etc.
  addKey("CALL", Call_Key, 0x5F, 8);
  addKey("CLOCK/COUNTER", Unmapped_Key, 0x51, 8);
  addKey("COUNTER_RESET", Reset_Key, 0x4C, 8);
  addKey("ZERO_RETURN", Unmapped_Key, 0x4B, 8);
  addKey("SPEED_SP/LP", VHSSpeed_Key, 0x1E, 8);
  addKey("TV/VCR", Input_Key, 0x12, 8);
  addKey("AUDIO_SELECT", Audio_Key, 0x0E, 8);
  addKey("EJECT", Eject_Key, 0x4E, 8);
}
开发者ID:lyapova,项目名称:Pierogi,代码行数:48,代码来源:lifetec.cpp

示例8: AiwaProtocol

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

  threadableProtocol = new AiwaProtocol(guiObject, index);

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

  setPreData(0x007B, 13);

  addKey("Power", Power_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("0", Zero_Key, 0x0A, 8);

  addKey("Yellow", Yellow_Key, 0x13, 8);
  addKey("Right", Right_Key, 0x18, 8);
  addKey("Left", Left_Key, 0x19, 8);
  addKey("Ok", Select_Key, 0x1B, 8);

  addKey("Up", Up_Key, 0x40, 8);
  addKey("Down", Down_Key, 0x41, 8);
  addKey("Volume-", VolumeDown_Key, 0x43, 8);
  addKey("Mute", Mute_Key, 0x4A, 8);
  addKey("Blue", Blue_Key, 0x4B, 8);
  addKey("RED", Red_Key, 0x4E, 8);
  addKey("Volume+", VolumeUp_Key, 0x4F, 8);

  addKey("Back", Exit_Key, 0x90, 8);
  addKey("Menu", Menu_Key, 0xC4, 8);
  addKey("Green", Green_Key, 0xDC, 8);
}
开发者ID:jpietrzak8,项目名称:Pierogi,代码行数:48,代码来源:aiwa.cpp

示例9: NECProtocol

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

  threadableProtocol = new NECProtocol(guiObject, index, false, true);

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

  setPreData(0x50, 8);

  addKey("EIGHT", Eight_Key, 0x04, 8);
  addKey("NINE", Nine_Key, 0x05, 8);
  addKey("XPRESS", Unmapped_Key, 0x06, 8);
  addKey("GUIDE", Guide_Key, 0x07, 8);
  addKey("SAP", Audio_Key, 0x08, 8);
  addKey("TVAV", Input_Key, 0x09, 8);
  addKey("LASTCH", PrevChannel_Key, 0x0A, 8);
  addKey("MUTE", Mute_Key, 0x0B, 8);
  addKey("ZERO", Zero_Key, 0x0C, 8);
  addKey("ONE", One_Key, 0x0D, 8);
  addKey("TWO", Two_Key, 0x0E, 8);
  addKey("THREE", Three_Key, 0x0F, 8);

  addKey("DISPLAY", Info_Key, 0x10, 8);
  addKey("TIMER", Sleep_Key, 0x11, 8);
  addKey("VOL+", VolumeUp_Key, 0x12, 8);
  addKey("PREF", Unmapped_Key, 0x13, 8);
  addKey("VOL-", VolumeDown_Key, 0x15, 8);
  addKey("POWER", Power_Key, 0x17, 8);
  addKey("CHANNEL-", ChannelDown_Key, 0x18, 8);
  addKey("CHANNEL+", ChannelUp_Key, 0x19, 8);
  addKey("FOUR", Four_Key, 0x1C, 8);
  addKey("FIVE", Five_Key, 0x1D, 8);
  addKey("SIX", Six_Key, 0x1E, 8);
  addKey("SEVEN", Seven_Key, 0x1F, 8);

  addKey("MAGIC", Unmapped_Key, 0x5B, 8);
  addKey("MENU", Menu_Key, 0x5E, 8);
}
开发者ID:jpietrzak8,项目名称:Pierogi,代码行数:48,代码来源:philco.cpp

示例10: ProtonProtocol

void DaewooTV5::populateProtocol(
  QObject *guiObject)
{
  if (threadableProtocol)
  {
    // Keyset already populated.
    return;
  }

  threadableProtocol = new ProtonProtocol(guiObject, index);

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

  setPreData(0x14, 8);

  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("Sleep", Sleep_Key, 0x0D, 8);
  addKey("INFO", Info_Key, 0x11, 8);
  addKey("MUTE", Mute_Key, 0x12, 8);
  addKey("VOL+", VolumeUp_Key, 0x13, 8);
  addKey("right", Right_Key, 0x13, 8);
  addKey("VOL-", VolumeDown_Key, 0x14, 8);
  addKey("left", Left_Key, 0x14, 8);
  addKey("POWER", Power_Key, 0x15, 8);
  addKey("INPUT", Input_Key, 0x16, 8);
  addKey("CH+", ChannelUp_Key, 0x17, 8);
  addKey("up", Up_Key, 0x17, 8);
  addKey("CH-", ChannelDown_Key, 0x18, 8);
  addKey("down", Down_Key, 0x18, 8);
  addKey("Picture", PictureMode_Key, 0x1A, 8);
  addKey("PREV", PrevChannel_Key, 0x20, 8);
  addKey("MENU", Menu_Key, 0x22, 8);
  addKey("CC", Captions_Key, 0x25, 8);
}
开发者ID:jpietrzak8,项目名称:Pierogi,代码行数:47,代码来源:daewoo.cpp

示例11: NECProtocol

void SamsungSTB6::populateProtocol(
  QObject *guiObject)
{
  if (threadableProtocol)
  {
    // Keyset already populated.
    return;
  }

  threadableProtocol = new NECProtocol(guiObject, index, true, true);

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

  setPreData(0xA8AD, 16);

  addKey("Power", Power_Key, 0xA0, 8);
  addKey("CH+", ChannelUp_Key, 0xA6, 8);
  addKey("CH-", ChannelDown_Key, 0xA7, 8);
  addKey("Page+", PageUp_Key, 0xAA, 8);
  addKey("Page-", PageDown_Key, 0xAB, 8);
  addKey("Guide", Guide_Key, 0xAC, 8);
  addKey("up_arrow", Up_Key, 0xB0, 8);
  addKey("down_arrow", Down_Key, 0xB1, 8);
  addKey("Select", Select_Key, 0xB2, 8);
  addKey("left_arrow", Left_Key, 0xB3, 8);
  addKey("right_arrow", Right_Key, 0xB4, 8);
  addKey("Red", Red_Key, 0xB5, 8);
  addKey("Yellow", Yellow_Key, 0xB6, 8);
  addKey("Green", Green_Key, 0xB7, 8);
  addKey("Blue", Blue_Key, 0xB8, 8);
  addKey("num_1", One_Key, 0xB9, 8);
  addKey("num_2", Two_Key, 0xBA, 8);
  addKey("num_3", Three_Key, 0xBB, 8);
  addKey("num_4", Four_Key, 0xBC, 8);
  addKey("num_5", Five_Key, 0xBD, 8);
  addKey("num_6", Six_Key, 0xBE, 8);
  addKey("num_7", Seven_Key, 0xBF, 8);
  addKey("num_8", Eight_Key, 0xC0, 8);
  addKey("num_9", Nine_Key, 0xC1, 8);
  addKey("num_0", Zero_Key, 0xC2, 8);
  addKey("Backspace", Unmapped_Key, 0xC3, 8);
  addKey("Home", Unmapped_Key, 0xC6, 8);
}
开发者ID:jpietrzak8,项目名称:Pierogi,代码行数:47,代码来源:samsung.cpp

示例12: NECProtocol

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

  threadableProtocol = new NECProtocol(guiObject, index, true, true);

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

  setPreData(0x4D84, 16);

  addKey("RANDOM", Random_Key, 0x00, 8);
  addKey("REPEAT", Repeat_Key, 0x01, 8);
  addKey("REMAIN", Unmapped_Key, 0x02, 8);
  addKey("PROG", Program_Key, 0x03, 8);
  addKey("INTRO", Unmapped_Key, 0x04, 8);
  addKey("SPACE", Unmapped_Key, 0x05, 8);
  addKey("A<>B", RepeatAB_Key, 0x06, 8);
  addKey("1", One_Key, 0x09, 8);
  addKey("<<", Rewind_Key, 0x0A, 8);
  addKey("PAUSE", Pause_Key, 0x0B, 8);
  addKey("4", Four_Key, 0x0D, 8);
  addKey("|<<", Previous_Key, 0x0E, 8);
  addKey("STOP", Stop_Key, 0x0F, 8);

  addKey("OPEN/CLOSE", Eject_Key, 0x10, 8);
  addKey("7", Seven_Key, 0x11, 8);
  addKey("10", Zero_Key, 0x12, 8);
  addKey("PLAY", Play_Key, 0x13, 8);
  addKey("8", Eight_Key, 0x15, 8);
  addKey("+10", DoubleDigit_Key, 0x16, 8);
  addKey("9", Nine_Key, 0x17, 8);
  addKey("5", Five_Key, 0x19, 8);
  addKey(">>|", Next_Key, 0x1A, 8);
  addKey("6", Six_Key, 0x1B, 8);
  addKey("2", Two_Key, 0x1D, 8);
  addKey(">>", FastForward_Key, 0x1E, 8);
  addKey("3", Three_Key, 0x1F, 8);
}
开发者ID:jpietrzak8,项目名称:Pierogi,代码行数:47,代码来源:cambridge.cpp

示例13: NECProtocol

void ApexSTB1::populateProtocol(
  QObject *guiObject)
{
  if (threadableProtocol)
  {
    // Keyset already populated.
    return;
  }

  threadableProtocol = new NECProtocol(guiObject, index, true, true);

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

  setPreData(0xFB0C, 16);

  addKey("0", Zero_Key, 0x04, 8);
  addKey("1", One_Key, 0x05, 8);
  addKey("2", Two_Key, 0x06, 8);
  addKey("3", Three_Key, 0x07, 8);
  addKey("4", Four_Key, 0x08, 8);
  addKey("5", Five_Key, 0x09, 8);
  addKey("6", Six_Key, 0x0A, 8);
  addKey("7", Seven_Key, 0x0B, 8);
  addKey("8", Eight_Key, 0x0C, 8);
  addKey("9", Nine_Key, 0x0D, 8);
  addKey("-", Dash_Key, 0x36, 8);
  addKey("Power", Power_Key, 0x15, 8);
  addKey("Menu", Menu_Key, 0x70, 8);
  addKey("Exit", Exit_Key, 0x0F, 8);
  addKey("Up", Up_Key, 0x02, 8);
  addKey("Down", Down_Key, 0x03, 8);
  addKey("OK", Select_Key, 0x18, 8);
  addKey("Recall", PrevChannel_Key, 0x16, 8);
  addKey("Display", Info_Key, 0x13, 8);
  addKey("FAV+", Unmapped_Key, 0x19, 8);
  addKey("FAV-", Unmapped_Key, 0x10, 8);
  addKey("FAV", Favorites_Key, 0x11, 8);
  addKey("Signal", Unmapped_Key, 0x17, 8);
  addKey("Guide", Guide_Key, 0x12, 8);
  addKey("Zoom", Zoom_Key, 0x14, 8);
  addKey("MTS", Audio_Key, 0x64, 8);
  addKey("CCD", Captions_Key, 0x61, 8);
}
开发者ID:jpietrzak8,项目名称:Pierogi,代码行数:47,代码来源:apex.cpp

示例14: KaseikyoProtocol

void BlaupunktVCR1::populateProtocol(
   QObject *guiObject)
{
  if (threadableProtocol)
  {
    // Keyset already populated.
    return;
  }

  threadableProtocol = new KaseikyoProtocol(guiObject, index);

  setPreData(0x2002, 16);

  addKaseikyoKey("ok", Select_Key, 0x009, 0x58);
  addKaseikyoKey("up", Up_Key, 0x009, 0x02);
  addKaseikyoKey("down", Down_Key, 0x009, 0x03);
  addKaseikyoKey("left", Left_Key, 0x009, 0x05);
  addKaseikyoKey("right", Right_Key, 0x009, 0x04);
  addKaseikyoKey("menu", Menu_Key, 0x009, 0x56);
  addKaseikyoKey("exit", Exit_Key, 0x009, 0x66);
  addKaseikyoKey("power", Power_Key, 0x009, 0x3D);
  addKaseikyoKey("prog+", ChannelUp_Key, 0x009, 0x34);
  addKaseikyoKey("prog-", ChannelDown_Key, 0x009, 0x35);
  addKaseikyoKey("vt_hold", TeletextHold_Key, 0x009, 0x66);
  addKaseikyoKey("vt_mix", TeletextMix_Key, 0x009, 0x58);
  addKaseikyoKey("vt_off", TeletextOff_Key, 0x009, 0x66);
  addKaseikyoKey("vt_on", Teletext_Key, 0x009, 0x56);
  addKaseikyoKey("adjust", Unmapped_Key, 0x009, 0x57);
  addKaseikyoKey("stop", Stop_Key, 0x009, 0x00);
  addKaseikyoKey("play", Play_Key, 0x009, 0x0A);
  addKaseikyoKey("rew", Rewind_Key, 0x009, 0x02);
  addKaseikyoKey("ffwd", FastForward_Key, 0x009, 0x03);
  addKaseikyoKey("rec", Record_Key, 0x009, 0x08);
  addKaseikyoKey("pause", Pause_Key, 0x009, 0x06);
  addKaseikyoKey("1", One_Key, 0x009, 0x10);
  addKaseikyoKey("2", Two_Key, 0x009, 0x11);
  addKaseikyoKey("3", Three_Key, 0x009, 0x12);
  addKaseikyoKey("4", Four_Key, 0x009, 0x13);
  addKaseikyoKey("5", Five_Key, 0x009, 0x14);
  addKaseikyoKey("6", Six_Key, 0x009, 0x15);
  addKaseikyoKey("7", Seven_Key, 0x009, 0x16);
  addKaseikyoKey("8", Eight_Key, 0x009, 0x17);
  addKaseikyoKey("9", Nine_Key, 0x009, 0x18);
  addKaseikyoKey("0", Zero_Key, 0x009, 0x19);
  addKaseikyoKey("av", Input_Key, 0x009, 0xC0);
  addKaseikyoKey("n/nm", Unmapped_Key, 0x009, 0x3B);
}
开发者ID:lyapova,项目名称:Pierogi,代码行数:47,代码来源:blaupunkt.cpp

示例15: NECProtocol

void VenturerSTB1::populateProtocol(
  QObject *guiObject)
{
  if (threadableProtocol)
  {
    // Keyset already populated.
    return;
  }

  threadableProtocol = new NECProtocol(guiObject, index, true, true);

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

  setPreData(0xBB42, 16);

  addKey("1", One_Key, 0x81, 8);
  addKey("2", Two_Key, 0x82, 8);
  addKey("3", Three_Key, 0x83, 8);
  addKey("4", Four_Key, 0x84, 8);
  addKey("5", Five_Key, 0x85, 8);
  addKey("6", Six_Key, 0x86, 8);
  addKey("7", Seven_Key, 0x87, 8);
  addKey("8", Eight_Key, 0x88, 8);
  addKey("9", Nine_Key, 0x89, 8);
  addKey("0", Zero_Key, 0x8A, 8);
  addKey("exit", Exit_Key, 0x8B, 8);
  addKey("cc", Captions_Key, 0x8C, 8);
  addKey(". (last ch)", PrevChannel_Key, 0x8E, 8);
  addKey("power", Power_Key, 0x92, 8);
  addKey("mute", Mute_Key, 0x96, 8);
  addKey("signal", Unmapped_Key, 0x98, 8);
  addKey("vol up", VolumeUp_Key, 0x9A, 8);
  addKey("channel up", ChannelUp_Key, 0x9B, 8);
  addKey("vol down", VolumeDown_Key, 0x9C, 8);
  addKey("channel down", ChannelDown_Key, 0x9F, 8);
  addKey("up arrow", Up_Key, 0xC8, 8);
  addKey("down arrow", Down_Key, 0xC9, 8);
  addKey("right arrow", Right_Key, 0xCA, 8);
  addKey("left arrow", Left_Key, 0xCB, 8);
  addKey("menu", Menu_Key, 0xD4, 8);
  addKey("info", Info_Key, 0xFE, 8);
  addKey("ok", Select_Key, 0xFF, 8);
}
开发者ID:jpietrzak8,项目名称:Pierogi,代码行数:47,代码来源:venturer.cpp


注:本文中的setPreData函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。