diff --git a/src/Insight/CMakeLists.txt b/src/Insight/CMakeLists.txt index 30cf93d4..e4c3bc58 100755 --- a/src/Insight/CMakeLists.txt +++ b/src/Insight/CMakeLists.txt @@ -29,6 +29,7 @@ target_sources( ${CMAKE_CURRENT_SOURCE_DIR}/InsightWorker/Tasks/QueryLatestVersionNumber.cpp ${CMAKE_CURRENT_SOURCE_DIR}/InsightWorker/Tasks/ReadProgramCounter.cpp ${CMAKE_CURRENT_SOURCE_DIR}/InsightWorker/Tasks/GetTargetState.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/InsightWorker/Tasks/GetTargetDescriptor.cpp # Error dialogue window ${CMAKE_CURRENT_SOURCE_DIR}/UserInterfaces/InsightWindow/Widgets/ErrorDialogue/ErrorDialogue.cpp diff --git a/src/Insight/InsightWorker/Tasks/GetTargetDescriptor.cpp b/src/Insight/InsightWorker/Tasks/GetTargetDescriptor.cpp new file mode 100644 index 00000000..0729f7eb --- /dev/null +++ b/src/Insight/InsightWorker/Tasks/GetTargetDescriptor.cpp @@ -0,0 +1,10 @@ +#include "GetTargetDescriptor.hpp" + +namespace Bloom +{ + using TargetController::TargetControllerConsole; + + void GetTargetDescriptor::run(TargetControllerConsole& targetControllerConsole) { + emit this->targetDescriptor(targetControllerConsole.getTargetDescriptor()); + } +} diff --git a/src/Insight/InsightWorker/Tasks/GetTargetDescriptor.hpp b/src/Insight/InsightWorker/Tasks/GetTargetDescriptor.hpp new file mode 100644 index 00000000..ba6f8845 --- /dev/null +++ b/src/Insight/InsightWorker/Tasks/GetTargetDescriptor.hpp @@ -0,0 +1,22 @@ +#pragma once + +#include "InsightWorkerTask.hpp" + +#include "src/Targets/TargetDescriptor.hpp" + +namespace Bloom +{ + class GetTargetDescriptor: public InsightWorkerTask + { + Q_OBJECT + + public: + GetTargetDescriptor() = default; + + signals: + void targetDescriptor(Targets::TargetDescriptor targetDescriptor); + + protected: + void run(TargetController::TargetControllerConsole& targetControllerConsole) override; + }; +}