3#include <NDEVR/TranslatedString.h>
33 for (
const auto& iter :
m_tasks)
35 if (iter.second.is_active && !iter.second.allow_application_close)
43 for (
const auto& iter :
m_tasks)
45 if (iter.second.is_active && !iter.second.allow_open_project)
53 for (
const auto& iter :
m_tasks)
55 if (iter.second.is_active && !iter.second.allow_import_file)
Manages all active and inactive tasks for a DesignObjectLookup.
Definition DesignTask.h:28
virtual bool canOpenProject() const
Definition DesignTask.h:40
DesignTask task(const UUID &id) const
Definition DesignTask.h:75
virtual bool canImportFile() const
Definition DesignTask.h:50
virtual void updateTask(const DesignTask &task)
Definition DesignTask.h:65
virtual bool canExitApplication() const
Definition DesignTask.h:30
Dictionary< UUID, DesignTask > m_tasks
Definition DesignTask.h:80
virtual void addTask(const DesignTask &task)
Definition DesignTask.h:60
virtual void removeTask(const UUID &id)
Definition DesignTask.h:70
A hash-based key-value store, useful for quick associative lookups.
Definition Dictionary.h:59
Used to lock a particular variable for reading. Any number of readers can be created when no write lo...
Definition RWLock.h:91
Any text displayed to the user should be defined as a TranslatedString which allows the.
Definition TranslatedString.h:13
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:62
Used to lock a particular variable for writing. Only one write lock can be created when no read locks...
Definition RWLock.h:115
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:146
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved.
Definition BaseValues.hpp:230
A task which is to be executed by a DesignObjectLookup. When active tasks may limit certain.
Definition DesignTask.h:11
DesignTask()
Definition DesignTask.h:20
UUID id
Definition DesignTask.h:12
bool is_active
Definition DesignTask.h:19
bool allow_application_close
Definition DesignTask.h:16
TranslatedString description
Definition DesignTask.h:14
TranslatedString name
Definition DesignTask.h:13
bool allow_import_file
Definition DesignTask.h:17
fltp08 progress
Definition DesignTask.h:15
bool allow_open_project
Definition DesignTask.h:18