36 lines
730 B
C++
Executable File
36 lines
730 B
C++
Executable File
|
|
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <memory>
|
|
#include "dds_handler.h"
|
|
#include <Common/logger.h>
|
|
|
|
namespace HighLevelArchitecture
|
|
{
|
|
class NgsHandler;
|
|
class WebSocketHandler;
|
|
class MainHandler : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit MainHandler(QObject *parent = nullptr);
|
|
~MainHandler();
|
|
|
|
bool init(int domainId, int exerciseId);
|
|
|
|
bool isConnectedToHla() const;
|
|
std::shared_ptr<NgsHandler> ngsHandler() const { return m_ngsHandler; }
|
|
|
|
private Q_SLOTS:
|
|
void onExerciseHlaStateChanged(bool bHlaEnabled);
|
|
private:
|
|
NGL::INGLLogger &m_logger;
|
|
std::shared_ptr<DdsHandler> m_ddsHandler;
|
|
std::shared_ptr<NgsHandler> m_ngsHandler;
|
|
std::shared_ptr<WebSocketHandler> m_wsHandler;
|
|
int m_exerciseId;
|
|
};
|
|
}
|