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

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