Added support for grouping InsightWorker tasks
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
|
||||
#include "TaskGroup.hpp"
|
||||
#include "src/TargetController/TargetControllerConsole.hpp"
|
||||
|
||||
namespace Bloom
|
||||
@@ -24,6 +25,10 @@ namespace Bloom
|
||||
|
||||
InsightWorkerTask(): QObject(nullptr) {};
|
||||
|
||||
virtual TaskGroups getTaskGroups() const {
|
||||
return TaskGroups();
|
||||
};
|
||||
|
||||
void execute(TargetController::TargetControllerConsole& targetControllerConsole);
|
||||
|
||||
signals:
|
||||
|
||||
12
src/Insight/InsightWorker/Tasks/TaskGroup.hpp
Normal file
12
src/Insight/InsightWorker/Tasks/TaskGroup.hpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <set>
|
||||
|
||||
namespace Bloom
|
||||
{
|
||||
enum class TaskGroup: std::uint16_t
|
||||
{};
|
||||
|
||||
using TaskGroups = std::set<TaskGroup>;
|
||||
}
|
||||
Reference in New Issue
Block a user