Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+50
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* MainHandler for ServiceManagement
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Hannes Baeuerle, SLSE, 2016-02-15
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QtCore/QObject>
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "logger.h"
|
||||
#include "group_handler.h"
|
||||
#include "licence_handler.h"
|
||||
#include "service_handler.h"
|
||||
#include "dds_handler.h"
|
||||
#include "WebSocketInterface/websocket_interface_handler.h"
|
||||
|
||||
namespace ServiceManagement
|
||||
{
|
||||
class MainHandler : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit MainHandler(QObject *parent = nullptr);
|
||||
~MainHandler();
|
||||
|
||||
bool init(int domainId, const QString &licenceFile);
|
||||
|
||||
std::shared_ptr<GroupHandler> groupHandler() const;
|
||||
|
||||
private: // methods
|
||||
bool readServices();
|
||||
|
||||
private Q_SLOTS:
|
||||
void onMessageFromCommandlineReceived();
|
||||
|
||||
private: // attributes
|
||||
std::shared_ptr<DdsHandler> m_ddsHandler;
|
||||
std::shared_ptr<GroupHandler> m_groupHandler;
|
||||
std::shared_ptr<LicenceHandler> m_licenceHandler;
|
||||
std::shared_ptr<ServiceHandler> m_serviceHandler;
|
||||
std::shared_ptr<WebSocketInterface::WebSocketInterfaceHandler> m_websocketHandler;
|
||||
|
||||
LOGGER_T m_logger;
|
||||
};
|
||||
} // namespace ServiceManagement
|
||||
Reference in new issue
Block a user