![]() |
NDEVR
API Documentation
|
Manages all active and inactive tasks for a DesignObjectLookup. More...
Public Member Functions | |
| virtual void | addTask (const DesignTask &task) |
| Adds a new task to the manager. | |
| virtual bool | canExitApplication () const |
| Checks whether the application is allowed to exit based on active tasks. | |
| virtual bool | canImportFile () const |
| Checks whether importing a file is allowed based on active tasks. | |
| virtual bool | canOpenProject () const |
| Checks whether opening a project is allowed based on active tasks. | |
| virtual void | removeTask (const UUID &id) |
| Removes a task from the manager by its UUID. | |
| DesignTask | task (const UUID &id) const |
| Retrieves a copy of a task by its UUID. | |
| virtual void | updateTask (const DesignTask &task) |
| Updates an existing task in the manager, replacing it by its UUID. | |
Public Attributes | |
| Dictionary< UUID, DesignTask > | m_tasks |
| Thread-safe dictionary of all managed tasks, keyed by UUID. | |
Manages all active and inactive tasks for a DesignObjectLookup.
Definition at line 28 of file DesignTask.h.
|
inlinevirtual |
Adds a new task to the manager.
| [in] | task | The task to add. |
Definition at line 69 of file DesignTask.h.
|
inlinevirtual |
Checks whether the application is allowed to exit based on active tasks.
Definition at line 33 of file DesignTask.h.
References m_tasks.
|
inlinevirtual |
Checks whether importing a file is allowed based on active tasks.
Definition at line 57 of file DesignTask.h.
References m_tasks.
|
inlinevirtual |
Checks whether opening a project is allowed based on active tasks.
Definition at line 45 of file DesignTask.h.
References m_tasks.
|
inlinevirtual |
Removes a task from the manager by its UUID.
| [in] | id | The UUID of the task to remove. |
Definition at line 83 of file DesignTask.h.
References m_tasks.
|
inline |
Retrieves a copy of a task by its UUID.
| [in] | id | The UUID of the task to retrieve. |
Definition at line 91 of file DesignTask.h.
References m_tasks.
Referenced by addTask(), and updateTask().
|
inlinevirtual |