41 lines
812 B
C++
Executable File
41 lines
812 B
C++
Executable File
/**
|
|
* MainHandler for HighLevelArchitecture
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Christian Ehrlicher, SLSE, 2017-04-07
|
|
*/
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <memory>
|
|
//#include "dds_handler.h"
|
|
#include <Common/logger.h>
|
|
|
|
namespace HighLevelArchitecture
|
|
{
|
|
class NgsHandler;
|
|
class WsInterface;
|
|
|
|
class MainHandler : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit MainHandler(QObject *parent = nullptr);
|
|
~MainHandler();
|
|
|
|
bool init(int exerciseId);
|
|
|
|
bool isConnectedToHla() const;
|
|
std::shared_ptr<NgsHandler> ngsHandler() const { return m_ngsHandler; }
|
|
|
|
private Q_SLOTS:
|
|
|
|
private:
|
|
std::shared_ptr<NgsHandler> m_ngsHandler;
|
|
std::shared_ptr<WsInterface> m_wsInterface; // WsServer receiving requests
|
|
int m_exerciseId;
|
|
LOGGER_T m_logger;
|
|
};
|
|
} // namespace HighLevelArchitecture
|