AbstractTaskHandler
Qualified name: mv::AbstractTaskHandler
-
class AbstractTaskHandler : public QObject
Abstract task handler class.
Base handler class for interacting with a task.
- Author
Thomas Kroes
Subclassed by mv::BackgroundTaskHandler, mv::DatasetTaskHandler, mv::ForegroundTaskHandler, mv::ModalTaskHandler
Public Functions
-
AbstractTaskHandler(QObject *parent, Task *task)
Construct task handler with
parentobject.- Parameters:
parent – Pointer to parent object
task – Pointer to task to handle
-
std::uint32_t getMinimumDuration() const
Get the minimum duration.
- Returns:
Minimum duration before the handler displays a tasks UI
-
void setMinimumDuration(std::uint32_t minimumDuration)
Set the minimum duration.
- Parameters:
minimumDuration – Minimum duration before the handler displays a tasks UI
-
bool getEnabled() const
Get enabled.
- Returns:
Boolean determining whether the task handler is enabled or not
-
void setEnabled(bool enabled)
Set enabled to
enabled.- Parameters:
enabled – Minimum duration before the handler displays a tasks UI
-
void taskChanged(Task *previousTask, Task *currentTask)
Signals that the current task has changed from
previousTasktocurrentTask.- Parameters:
previousTask – Pointer to previous task (if any)
currentTask – Pointer to current task
-
void minimumDurationChanged(std::uint32_t previousMinimumDuration, std::uint32_t currentMinimumDuration)
Signals that the minimum duration changed from
previousMinimumDurationtocurrentMinimumDuration.- Parameters:
previousMinimumDuration – Previous minimum duration
currentMinimumDuration – Current minimum duration
-
void enabledChanged(bool enabled)
Signals that enabled changed to
enabled.- Parameters:
enabled – Boolean determining whether the task handler is enabled or not