45 lines
1.2 KiB
C++
Executable File
45 lines
1.2 KiB
C++
Executable File
/**
|
|
* Convert internal gear and charge id to and from tas ids
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Christian Ehrlicher, SLSE, 2016-04-14
|
|
*/
|
|
|
|
#include "relay_info_handler.h"
|
|
#include "main_handler.h"
|
|
|
|
namespace Buildings
|
|
{
|
|
RelayInfoHandler::RelayInfoHandler(MainHandler *mainHandler)
|
|
: QObject()
|
|
, Interface::Fts::SetRelayInfoRequestHandler(mainHandler->ddsHandler()->fts())
|
|
, m_mainHandler(mainHandler)
|
|
, m_logger(getLogger("RelayInfoHandler"))
|
|
{}
|
|
|
|
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();
|
|
}
|
|
} // namespace Buildings
|