void DSKY::ProcessChannel13(ChannelValue val) { /// \todo Standby light with PRO key? if (val[EnableStandby] || val[TestAlarms]) { SetStby(true); } else { SetStby(false); } /// \todo Other conditions restart light if (val[TestAlarms] || (agc.Yaagc && agc.vagc.VoltageAlarm != 0)) { SetRestart(true); } else { SetRestart(false); } }
void btTracker::RestartTracker() { SetStoped(); // finish the tracker // Now we need to wait until the tracker updates (T_FINISHED == m_status), // then Tracker.Restart(). SetRestart(); }
PRBool nsSMILTimedElement::SetAttr(nsIAtom* aAttribute, const nsAString& aValue, nsAttrValue& aResult, nsresult* aParseResult) { PRBool foundMatch = PR_TRUE; nsresult parseResult = NS_OK; if (aAttribute == nsGkAtoms::begin) { parseResult = SetBeginSpec(aValue); } else if (aAttribute == nsGkAtoms::dur) { parseResult = SetSimpleDuration(aValue); } else if (aAttribute == nsGkAtoms::end) { parseResult = SetEndSpec(aValue); } else if (aAttribute == nsGkAtoms::fill) { parseResult = SetFillMode(aValue); } else if (aAttribute == nsGkAtoms::max) { parseResult = SetMax(aValue); } else if (aAttribute == nsGkAtoms::min) { parseResult = SetMin(aValue); } else if (aAttribute == nsGkAtoms::repeatCount) { parseResult = SetRepeatCount(aValue); } else if (aAttribute == nsGkAtoms::repeatDur) { parseResult = SetRepeatDur(aValue); } else if (aAttribute == nsGkAtoms::restart) { parseResult = SetRestart(aValue); } else { foundMatch = PR_FALSE; } if (foundMatch) { aResult.SetTo(aValue); if (aParseResult) { *aParseResult = parseResult; } } return foundMatch; }