Renamed component (DebugServer and TargetController) state changed events to be specific to thread states

This commit is contained in:
Nav
2021-05-24 21:09:50 +01:00
parent 76e5fba383
commit 897482de1d
8 changed files with 27 additions and 54 deletions

View File

@@ -5,17 +5,17 @@
namespace Bloom::Events
{
class DebugServerStateChanged: public Event
class DebugServerThreadStateChanged: public Event
{
private:
ThreadState state;
public:
DebugServerStateChanged(ThreadState state): state(state) {};
DebugServerThreadStateChanged(ThreadState state): state(state) {};
static inline const std::string name = "DebugServerStateChanged";
static inline const std::string name = "DebugServerThreadStateChanged";
std::string getName() const override {
return DebugServerStateChanged::name;
return DebugServerThreadStateChanged::name;
}
ThreadState getState() const {

View File

@@ -8,12 +8,12 @@
#include "ResetTarget.hpp"
#include "DebugSessionStarted.hpp"
#include "DebugSessionFinished.hpp"
#include "TargetControllerStateChanged.hpp"
#include "TargetControllerThreadStateChanged.hpp"
#include "TargetControllerStopped.hpp"
#include "ShutdownTargetController.hpp"
#include "TargetControllerErrorOccurred.hpp"
#include "ShutdownApplication.hpp"
#include "DebugServerStateChanged.hpp"
#include "DebugServerThreadStateChanged.hpp"
#include "ShutdownDebugServer.hpp"
#include "RetrieveRegistersFromTarget.hpp"
#include "RegistersRetrievedFromTarget.hpp"

View File

@@ -1,28 +0,0 @@
#pragma once
#include "Event.hpp"
#include "src/Helpers/Thread.hpp"
namespace Bloom::Events
{
class TargetControllerStateChanged: public Event
{
private:
ThreadState state;
public:
TargetControllerStateChanged(ThreadState state): state(state) {
};
static inline const std::string name = "TargetControllerStateChanged";
std::string getName() const override {
return TargetControllerStateChanged::name;
}
ThreadState getState() const {
return this->state;
}
};
}