New GetTargetDescriptor insight worker task
This commit is contained in:
@@ -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
|
||||
|
||||
10
src/Insight/InsightWorker/Tasks/GetTargetDescriptor.cpp
Normal file
10
src/Insight/InsightWorker/Tasks/GetTargetDescriptor.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "GetTargetDescriptor.hpp"
|
||||
|
||||
namespace Bloom
|
||||
{
|
||||
using TargetController::TargetControllerConsole;
|
||||
|
||||
void GetTargetDescriptor::run(TargetControllerConsole& targetControllerConsole) {
|
||||
emit this->targetDescriptor(targetControllerConsole.getTargetDescriptor());
|
||||
}
|
||||
}
|
||||
22
src/Insight/InsightWorker/Tasks/GetTargetDescriptor.hpp
Normal file
22
src/Insight/InsightWorker/Tasks/GetTargetDescriptor.hpp
Normal file
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user