Exemplo n.º 1
0
bool StateOrchestrator::start()
{
    timer.start();
    emit log(tr("%1 state: %2").arg(actionName).arg(fileName),metaObject()->className(), Pip3lineConst::LSTATUS);
    execNext();

    return true;
}
Exemplo n.º 2
0
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);
}
Exemplo n.º 3
0
InvokeResult StepCallChain::exec() {
    execNext();
    return result;
}