Programming mode enabled/disabled events
This commit is contained in:
@@ -30,6 +30,8 @@ namespace Bloom::Events
|
||||
MEMORY_WRITTEN_TO_TARGET,
|
||||
INSIGHT_THREAD_STATE_CHANGED,
|
||||
TARGET_RESET,
|
||||
PROGRAMMING_MODE_ENABLED,
|
||||
PROGRAMMING_MODE_DISABLED,
|
||||
};
|
||||
|
||||
class Event
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
#include "MemoryWrittenToTarget.hpp"
|
||||
#include "InsightThreadStateChanged.hpp"
|
||||
#include "TargetReset.hpp"
|
||||
#include "ProgrammingModeEnabled.hpp"
|
||||
#include "ProgrammingModeDisabled.hpp"
|
||||
|
||||
namespace Bloom::Events
|
||||
{
|
||||
|
||||
23
src/EventManager/Events/ProgrammingModeDisabled.hpp
Normal file
23
src/EventManager/Events/ProgrammingModeDisabled.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "Event.hpp"
|
||||
|
||||
namespace Bloom::Events
|
||||
{
|
||||
class ProgrammingModeDisabled: public Event
|
||||
{
|
||||
public:
|
||||
static constexpr EventType type = EventType::PROGRAMMING_MODE_DISABLED;
|
||||
static inline const std::string name = "ProgrammingModeDisabled";
|
||||
|
||||
[[nodiscard]] EventType getType() const override {
|
||||
return ProgrammingModeDisabled::type;
|
||||
}
|
||||
|
||||
[[nodiscard]] std::string getName() const override {
|
||||
return ProgrammingModeDisabled::name;
|
||||
}
|
||||
};
|
||||
}
|
||||
23
src/EventManager/Events/ProgrammingModeEnabled.hpp
Normal file
23
src/EventManager/Events/ProgrammingModeEnabled.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "Event.hpp"
|
||||
|
||||
namespace Bloom::Events
|
||||
{
|
||||
class ProgrammingModeEnabled: public Event
|
||||
{
|
||||
public:
|
||||
static constexpr EventType type = EventType::PROGRAMMING_MODE_ENABLED;
|
||||
static inline const std::string name = "ProgrammingModeEnabled";
|
||||
|
||||
[[nodiscard]] EventType getType() const override {
|
||||
return ProgrammingModeEnabled::type;
|
||||
}
|
||||
|
||||
[[nodiscard]] std::string getName() const override {
|
||||
return ProgrammingModeEnabled::name;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user