예제 #1
0
void ProjectBuild::startBuild()
{
    cmd->showM();
    this->iter = 0;
    pathTmp = paths.at(iter);
    /**
     * Because running this process in syncronous mode will freeze GUI,
     * tasks are executed asyncronous - using signals and slots
     *  when a process ends it emit signal finished()
     * Progression: configureTask() -> buildTask() -> slotNextTask() ->...
     */
    configureTask();
}
예제 #2
0
void ProjectBuild::slotNextTask()
{
    iter++;
    if(iter >= paths.size())
    {
        cmd->addLine("Done!", Qt::black);
        proc->close();
        return;
    }
    pathTmp = paths.at(iter);

    configureTask();

}
예제 #3
0
파일: lowtask.cpp 프로젝트: 01org/pem
LowPriorityTask::LowPriorityTask(void) {
    configureTask(LOW_PRIORITY);
}