Tidied structure of all classes within the entire code base
Also some other small bits of tidying
This commit is contained in:
@@ -9,8 +9,6 @@ namespace Bloom::Events
|
||||
{
|
||||
class DebugServerThreadStateChanged: public Event
|
||||
{
|
||||
private:
|
||||
ThreadState state;
|
||||
public:
|
||||
static inline EventType type = EventType::DEBUG_SERVER_THREAD_STATE_CHANGED;
|
||||
static inline const std::string name = "DebugServerThreadStateChanged";
|
||||
@@ -28,5 +26,8 @@ namespace Bloom::Events
|
||||
[[nodiscard]] ThreadState getState() const {
|
||||
return this->state;
|
||||
}
|
||||
|
||||
private:
|
||||
ThreadState state;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -55,9 +55,6 @@ namespace Bloom::Events
|
||||
|
||||
class Event
|
||||
{
|
||||
private:
|
||||
static inline std::atomic<int> lastEventId = 0;
|
||||
|
||||
public:
|
||||
int id = ++(Event::lastEventId);
|
||||
QDateTime createdTimestamp = DateTime::currentDateTime();
|
||||
@@ -73,5 +70,8 @@ namespace Bloom::Events
|
||||
[[nodiscard]] virtual EventType getType() const {
|
||||
return Event::type;
|
||||
}
|
||||
|
||||
private:
|
||||
static inline std::atomic<int> lastEventId = 0;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -9,9 +9,6 @@ namespace Bloom::Events
|
||||
{
|
||||
class InsightThreadStateChanged: public Event
|
||||
{
|
||||
private:
|
||||
ThreadState state;
|
||||
|
||||
public:
|
||||
explicit InsightThreadStateChanged(ThreadState state): state(state) {};
|
||||
|
||||
@@ -29,5 +26,8 @@ namespace Bloom::Events
|
||||
ThreadState getState() const {
|
||||
return this->state;
|
||||
}
|
||||
|
||||
private:
|
||||
ThreadState state;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -9,9 +9,6 @@ namespace Bloom::Events
|
||||
{
|
||||
class TargetControllerThreadStateChanged: public Event
|
||||
{
|
||||
private:
|
||||
ThreadState state;
|
||||
|
||||
public:
|
||||
static inline EventType type = EventType::TARGET_CONTROLLER_THREAD_STATE_CHANGED;
|
||||
static inline const std::string name = "TargetControllerThreadStateChanged";
|
||||
@@ -29,5 +26,8 @@ namespace Bloom::Events
|
||||
ThreadState getState() const {
|
||||
return this->state;
|
||||
}
|
||||
|
||||
private:
|
||||
ThreadState state;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user