Introduced the TargetControllerConsole class to provide access to common functionality within the TargetController.

This commit is contained in:
Nav
2021-04-24 20:23:17 +01:00
parent 03a2bfab57
commit fa2a3f67db
10 changed files with 378 additions and 285 deletions

View File

@@ -2,13 +2,13 @@
#include <QtCore>
#include <QApplication>
#include "UserInterfaces/InsightWindow/InsightWindow.hpp"
#include "src/Helpers/Thread.hpp"
#include "src/ApplicationConfig.hpp"
#include "src/EventManager/EventManager.hpp"
#include "src/EventManager/EventListener.hpp"
#include "src/Targets/TargetDescriptor.hpp"
#include "src/TargetController/TargetControllerConsole.hpp"
namespace Bloom
{
@@ -34,6 +34,11 @@ namespace Bloom
QApplication* application = nullptr;
InsightWindow mainWindow;
TargetControllerConsole targetControllerConsole = TargetControllerConsole(
this->eventManager,
*(this->eventListener)
);
/**
* Insight consists of two threads - the main thread where the main Qt event loop runs (for the GUI), and
* a single worker thread to handle any blocking/time-expensive operations.
@@ -42,8 +47,6 @@ namespace Bloom
void startup();
Targets::TargetDescriptor getTargetDescriptor();
public:
Insight(EventManager& eventManager): eventManager(eventManager) {};