Learn Environment
Loading...
Searching...
No Matches
TaskManager Class Reference

Manages tasks and their execution within the application. More...

#include <task_manager.hpp>

Inheritance diagram for TaskManager:
Inheritance graph
Collaboration diagram for TaskManager:
Collaboration graph

Public Slots

void nextTask ()
 Slot for changing to the next task.
 
void previousTask ()
 Slot for changing to the previous task.
 
void selectTask (int index)
 Selects a task by its index.
 
void startStopSubtask (const Subtask &subtask)
 Starts or stops a subtask.
 
void forceResetRobot ()
 Forces the reset of the robot to its initial state.
 

Public Member Functions

 TaskManager (TaskUI *taskUI, QObject *parent=nullptr)
 Constructs a TaskManager object.
 
void startStopSubtask (Subtask &subtask, bool startSolution=false)
 Starts or stops a subtask.
 
void toggleSolution (Subtask &subtask)
 Show or hide the solution of a subtask.
 

Detailed Description

Manages tasks and their execution within the application.

The TaskManager class is responsible for loading tasks, managing their execution, and handling user interactions through the UI.

Constructor & Destructor Documentation

◆ TaskManager()

TaskManager::TaskManager ( TaskUI * taskUI,
QObject * parent = nullptr )

Constructs a TaskManager object.

Parameters
taskUIPointer to the TaskUI object.
parentPointer to the parent QObject.

Member Function Documentation

◆ forceResetRobot

void TaskManager::forceResetRobot ( )
slot

Forces the reset of the robot to its initial state.

◆ nextTask

void TaskManager::nextTask ( )
slot

Slot for changing to the next task.

◆ previousTask

void TaskManager::previousTask ( )
slot

Slot for changing to the previous task.

◆ selectTask

void TaskManager::selectTask ( int index)
slot

Selects a task by its index.

Parameters
indexThe index of the task to be selected.
Here is the caller graph for this function:

◆ startStopSubtask [1/2]

void TaskManager::startStopSubtask ( const Subtask & subtask)
slot

Starts or stops a subtask.

Parameters
subtaskReference to the subtask to be started or stopped.

◆ startStopSubtask() [2/2]

void TaskManager::startStopSubtask ( Subtask & subtask,
bool startSolution = false )

Starts or stops a subtask.

Parameters
subtaskReference to the subtask to be started or stopped.
startSolutionFlag indicating whether to start the solution or the users script.

◆ toggleSolution()

void TaskManager::toggleSolution ( Subtask & subtask)

Show or hide the solution of a subtask.

Parameters
subtaskReference to the subtask.

The documentation for this class was generated from the following files: