40 lines
1020 B
C++
Executable File
40 lines
1020 B
C++
Executable File
|
|
|
|
|
|
#include "relay_info_handler.h"
|
|
#include "main_handler.h"
|
|
|
|
namespace Buildings
|
|
{
|
|
RelayInfoHandler::RelayInfoHandler(MainHandler *mainHandler)
|
|
: QObject()
|
|
, Interface::Fts::SetRelayInfoRequestHandler(mainHandler->ddsHandler()->fts())
|
|
, m_logger(getLogger("RelayInfoHandler"))
|
|
, m_mainHandler(mainHandler)
|
|
{}
|
|
|
|
RelayInfoHandler::~RelayInfoHandler()
|
|
{}
|
|
|
|
bool RelayInfoHandler::init()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
void RelayInfoHandler::onSetRelayInfoRequest(const rti::core::SampleIdentity &cookie,
|
|
const SetRelayInfoRequest &request)
|
|
{
|
|
DEBUG_LOG(m_logger) << "onSetRelayInfoRequest " << request;
|
|
const Core::FunctionReplyObject fro = onSetRelayInfoRequestInternal(request);
|
|
if (fro.error())
|
|
WARNING_LOG(m_logger) << fro();
|
|
m_mainHandler->ddsHandler()->fts()->setRelayInfoReply(cookie, fro);
|
|
}
|
|
|
|
Core::FunctionReplyObject RelayInfoHandler::onSetRelayInfoRequestInternal(const SetRelayInfoRequest &data)
|
|
{
|
|
Q_UNUSED(data);
|
|
return Core::FunctionReplyObject();
|
|
}
|
|
}
|