Files
Sourcetrail/src/lib/utility/scheduling/TaskGroupSequence.h
T
Eberhard Graether ad325ac974 logic: background indexing (issue #175)
* allow hiding of indexing dialogs to browse loaded project while indexing
* show indexing status in status bar while indexing
* use different dialog views for different use cases to avoid state collisions
* fixed error label in status bar jittering while indexing
* show hand cursors for clickable elements in status bar
* indexing is not interrupted on pressing ESC while in hidden
* disable error table and error label while indexing
* refactored indexing messages
* forbid indexing and changing project while indexing
* don't show indexing status messages in status bar when indexing in the background
* allow tasks to run in the background

fortune cookie message = A journey is waiting for you.
2018-07-10 11:42:58 +02:00

27 lines
689 B
C++

#ifndef TASK_GROUP_SEQUENCE_H
#define TASK_GROUP_SEQUENCE_H
#include "utility/scheduling/TaskGroup.h"
#include "utility/scheduling/TaskRunner.h"
class TaskGroupSequence
: public TaskGroup
{
public:
TaskGroupSequence();
void addTask(std::shared_ptr<Task> task) override;
private:
void doEnter(std::shared_ptr<Blackboard> blackboard) override;
TaskState doUpdate(std::shared_ptr<Blackboard> blackboard) override;
void doExit(std::shared_ptr<Blackboard> blackboard) override;
void doReset(std::shared_ptr<Blackboard> blackboard) override;
void doTerminate() override;
std::vector<std::shared_ptr<TaskRunner>> m_taskRunners;
int m_taskIndex;
};
#endif // TASK_GROUP_SEQUENCE_H