QGIS API Documentation  3.10.0-A Coruña (6c816b4204)
Public Member Functions | Public Attributes | List of all members
QgsTaskManager::TaskDefinition Struct Reference

Definition of a task for inclusion in the manager. More...

#include <qgstaskmanager.h>

Public Member Functions

 TaskDefinition (QgsTask *task, const QgsTaskList &dependentTasks=QgsTaskList())
 Constructor for TaskDefinition. More...
 

Public Attributes

QgsTaskList dependentTasks
 List of dependent tasks which must be completed before task can run. More...
 
QgsTasktask = nullptr
 Task. More...
 

Detailed Description

Definition of a task for inclusion in the manager.

Definition at line 393 of file qgstaskmanager.h.

Constructor & Destructor Documentation

◆ TaskDefinition()

QgsTaskManager::TaskDefinition::TaskDefinition ( QgsTask task,
const QgsTaskList dependentTasks = QgsTaskList() 
)
inlineexplicit

Constructor for TaskDefinition.

Ownership of the task is not transferred to the definition, but will be transferred to a QgsTaskManager.

Definition at line 400 of file qgstaskmanager.h.

Member Data Documentation

◆ dependentTasks

QgsTaskList QgsTaskManager::TaskDefinition::dependentTasks

List of dependent tasks which must be completed before task can run.

If any dependent tasks are canceled this task will also be canceled. Dependent tasks must also be added to the task manager for proper handling of dependencies.

Definition at line 413 of file qgstaskmanager.h.

◆ task

QgsTask* QgsTaskManager::TaskDefinition::task = nullptr

Task.

Definition at line 406 of file qgstaskmanager.h.


The documentation for this struct was generated from the following file: