Files
BloomPatched/src/Insight/InsightWorker/Tasks/InsightWorkerTask.hpp
Nav 6edfb7376a Tidied structure of all classes within the entire code base
Also some other small bits of tidying
2021-10-31 11:36:28 +00:00

38 lines
721 B
C++

#pragma once
#include <QObject>
#include <QString>
#include "src/TargetController/TargetControllerConsole.hpp"
namespace Bloom
{
enum class InsightWorkerTaskState: std::uint8_t
{
CREATED,
STARTED,
FAILED,
COMPLETED,
};
class InsightWorkerTask: public QObject
{
Q_OBJECT
public:
InsightWorkerTaskState state;
InsightWorkerTask(): QObject(nullptr) {};
void execute(TargetControllerConsole& targetControllerConsole);
signals:
void started();
void failed(QString errorMessage);
void completed();
protected:
virtual void run(TargetControllerConsole& targetControllerConsole) = 0;
};
}