New GetTargetState insight worker task
This commit is contained in:
@@ -28,6 +28,7 @@ target_sources(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/InsightWorker/Tasks/ReadStackPointer.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/InsightWorker/Tasks/QueryLatestVersionNumber.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/InsightWorker/Tasks/ReadProgramCounter.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/InsightWorker/Tasks/GetTargetState.cpp
|
||||
|
||||
# Error dialogue window
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/UserInterfaces/InsightWindow/Widgets/ErrorDialogue/ErrorDialogue.cpp
|
||||
|
||||
10
src/Insight/InsightWorker/Tasks/GetTargetState.cpp
Normal file
10
src/Insight/InsightWorker/Tasks/GetTargetState.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "GetTargetState.hpp"
|
||||
|
||||
namespace Bloom
|
||||
{
|
||||
using TargetController::TargetControllerConsole;
|
||||
|
||||
void GetTargetState::run(TargetControllerConsole& targetControllerConsole) {
|
||||
emit this->targetState(targetControllerConsole.getTargetState());
|
||||
}
|
||||
}
|
||||
22
src/Insight/InsightWorker/Tasks/GetTargetState.hpp
Normal file
22
src/Insight/InsightWorker/Tasks/GetTargetState.hpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include "InsightWorkerTask.hpp"
|
||||
|
||||
#include "src/Targets/TargetState.hpp"
|
||||
|
||||
namespace Bloom
|
||||
{
|
||||
class GetTargetState: public InsightWorkerTask
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
GetTargetState() = default;
|
||||
|
||||
signals:
|
||||
void targetState(Targets::TargetState state);
|
||||
|
||||
protected:
|
||||
void run(TargetController::TargetControllerConsole& targetControllerConsole) override;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user