#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) {} 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(); } }