9#include <QSharedPointer>
78 void onTaskExecutionStarted();
83 void onTaskExecutionFinished();
89 void onTaskExecutionFailed(
const QString &error);
94 void onResetRobotStarted();
99 void onResetRobotFinished();
105 void onResetRobotFailed(
const QString &error);
110 QVector<QSharedPointer<Task>> tasks;
111 QVector<Subtask*> queued_and_running_subtasks;
112 int currentQueueStartSolution =
false;
113 int currentTaskIndex;
114 bool resetRobotInProgress =
false;
121 void startSubtask(
Subtask &started_subtask, QSharedPointer<Task> &task,
bool startSolution =
false);
126 void initiateFirstSubtask();
137 void logWithHashes(
const QString &message);
Executes tasks and manages their execution state.
Definition task_executor.hpp:19
Manages tasks and their execution within the application.
Definition task_manager.hpp:21
void nextTask()
Slot for changing to the next task.
Definition task_manager.cpp:110
void startStopSubtask(const Subtask &subtask)
Starts or stops a subtask.
void selectTask(int index)
Selects a task by its index.
Definition task_manager.cpp:85
void previousTask()
Slot for changing to the previous task.
Definition task_manager.cpp:117
void forceResetRobot()
Forces the reset of the robot to its initial state.
Definition task_manager.cpp:167
TaskManager(TaskUI *taskUI, QObject *parent=nullptr)
Constructs a TaskManager object.
Definition task_manager.cpp:11
void toggleSolution(Subtask &subtask)
Show or hide the solution of a subtask.
Definition task_manager.cpp:71
void startStopSubtask(Subtask &subtask, bool startSolution=false)
Starts or stops a subtask.
Definition task_manager.cpp:42
Manages the user interface for tasks and subtasks.
Definition task_ui.hpp:24
Represents a subtask within a task.
Definition task.hpp:31