Programming mode enabled/disabled events

This commit is contained in:
Nav
2022-06-05 16:15:34 +01:00
parent 40b1183f6b
commit f33d6062a4
4 changed files with 50 additions and 0 deletions

View File

@@ -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

View File

@@ -18,6 +18,8 @@
#include "MemoryWrittenToTarget.hpp"
#include "InsightThreadStateChanged.hpp"
#include "TargetReset.hpp"
#include "ProgrammingModeEnabled.hpp"
#include "ProgrammingModeDisabled.hpp"
namespace Bloom::Events
{

View 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;
}
};
}

View 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;
}
};
}