bool StateOrchestrator::start() { timer.start(); emit log(tr("%1 state: %2").arg(actionName).arg(fileName),metaObject()->className(), Pip3lineConst::LSTATUS); execNext(); return true; }
void StateOrchestrator::addState(BaseStateAbstract *stateobj) { // qDebug() << "Adding state" << stateobj; stateobj->setReader(reader); stateobj->setWriter(writer); stateobj->setFlags(flags); connect(stateobj, SIGNAL(finished()), this, SLOT(execNext()),Qt::QueuedConnection); connect(stateobj, SIGNAL(addNewState(BaseStateAbstract*)), this, SLOT(addState(BaseStateAbstract*)), Qt::QueuedConnection); connect(stateobj, SIGNAL(log(QString,QString,Pip3lineConst::LOGLEVEL)), this, SIGNAL(log(QString,QString,Pip3lineConst::LOGLEVEL))); executionStack.push(stateobj); }
InvokeResult StepCallChain::exec() { execNext(); return result; }