/** * MainHandler for HighLevelArchitecture * $Id$ * $HeadURL$ * $Author$ * Created by Christian Ehrlicher, SLSE, 2017-04-07 */ #pragma once #include #include #include "dds_handler.h" #include 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() const { return m_ngsHandler; } private Q_SLOTS: void onExerciseHlaStateChanged(bool bHlaEnabled); private: std::shared_ptr m_ddsHandler; std::shared_ptr m_ngsHandler; std::shared_ptr m_wsHandler; int m_exerciseId; LOGGER_T m_logger; }; } // namespace HighLevelArchitecture