void CanonDSLR1::populateProtocol( QObject *guiObject) { if (threadableProtocol) { // Keyset already populated. return; } LIRCProtocol *lp = new LIRCProtocol( guiObject, index, 550, 5250, 550, 7143, 100000, true); threadableProtocol = lp; connect( threadableProtocol, SIGNAL(errorMessage(QString)), this, SIGNAL(errorMessage(QString))); lp->setTrailerPulse(550); lp->setCarrierFrequency(32000); // hope this is right addKey("S", OpenShutter_Key, 0x1, 1); // Open shutter immediately (?) addKey("2S", DelayedOpenShutter_Key, 0x0, 1); // Two second delay (?) }
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); }