52 lines
1.1 KiB
C++
Executable File
52 lines
1.1 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* The DataManager class is a convenience class for managing structure data
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Philipp Dassow, SLST, 2017-12-05
|
|
*/
|
|
#pragma once
|
|
|
|
#include "WebSocketInterface/Messages/reply_message.h"
|
|
#include "logger.h"
|
|
|
|
namespace ServiceManagement
|
|
{
|
|
class MainHandler;
|
|
class GroupHandler;
|
|
|
|
namespace WebSocketInterface
|
|
{
|
|
|
|
/**
|
|
* @brief The DataManager class is a convenience class for managing structure data
|
|
*/
|
|
class DataManager final
|
|
{
|
|
public:
|
|
|
|
/**
|
|
* @brief DataManager Constructor
|
|
* @param mainHandler Source for needed handlers
|
|
*/
|
|
explicit DataManager(MainHandler *mainHandler);
|
|
|
|
/**
|
|
* @brief init Initialises a DataManager object
|
|
* @return True on sucess, otherwise false
|
|
*/
|
|
bool init();
|
|
|
|
LtsWebSocket::ReplyMessage *servicesInformation(const QString &uuid) const;
|
|
|
|
private: // attributes
|
|
MainHandler *m_mainHandler;
|
|
std::shared_ptr <GroupHandler> m_groupHandler;
|
|
|
|
LOGGER_T m_logger;
|
|
}; // class DataManager
|
|
|
|
} // namespace WebSocketInterface
|
|
} // namespace ServiceManagement
|