#include "VRoWaterMode.h" // Project #include "GuiController.h" VIEW_DEF_CLASS_ADJUSTMENT(VRoWaterMode) /*! * \brief Connection Initializer * \details All the class signal/slot connections are defined here. */ void View::VRoWaterMode::initConnections() { ADJUST_VIEW_CONNECTION(RoWaterModeRequestData) ACTION_VIEW_CONNECTION(RoWaterModeResponseData) connect(&_GuiController, &GuiController::didPOSTPass, this, [=](bool) { //POST// doAdjustment(); }); } void View::VRoWaterMode::onActionReceive(const RoWaterModeResponseData &vData) { adjustment_Accepted ( vData.mAccepted ); adjustment_Reason ( vData.mReason ); status ( vData.mValue ); // *** has to be the last to let the information to be set and then emit the signal *** // *** otherwise will use the Previous values before being set. *** adjustment ( true ); } void View::VRoWaterMode::doAdjustment() { RoWaterModeRequestData data; emit didAdjustment(data); }