Tidied structure of all classes within the entire code base

Also some other small bits of tidying
This commit is contained in:
Nav
2021-10-06 21:12:31 +01:00
parent 1aef5bba79
commit 6edfb7376a
179 changed files with 3446 additions and 3493 deletions

View File

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

View File

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

View File

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

View File

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