#include "VTreatmentAdjustmentIsolatedUFState.h" // Project #include "GuiController.h" VIEW_DEF_CLASS_ADJUSTMENT(VTreatmentAdjustmentIsolatedUFState) void VTreatmentAdjustmentIsolatedUFState::initConnections() { ACTION_VIEW_CONNECTION(AdjustIsolatedUFStateResponseData); ADJUST_VIEW_CONNECTION( AdjustIsolatedUFStateRequestData); } void VTreatmentAdjustmentIsolatedUFState::onActionReceive(const AdjustIsolatedUFStateResponseData &vData) { adjustment_Accepted ( vData.mAccepted ); adjustment_Reason ( vData.mReason ); // *** 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. *** // *** use this trigger to make sure you have all the properties with updated values *** adjustment ( true ); } /*! * \brief View::VTreatmentAdjustmentIsolatedUFState::doPause * \details request to pause the ultrafiltration */ void View::VTreatmentAdjustmentIsolatedUFState::doPause() { _data.requestedState = 0; // TODO Update during integration // _data.requestedState = GuiUFCommands::UF_CMD_PAUSE; emit didAdjustment(_data); // notify the controllers to do the adjustment } /*! * \brief View::VTreatmentAdjustmentIsolatedUFState::doResume * \details request to resume the ultrafiltration */ void View::VTreatmentAdjustmentIsolatedUFState::doResume() { _data.requestedState = 1; // TODO Update during integration emit didAdjustment(_data); // notify the controllers to do the adjustment } /*! * \brief View::VTreatmentAdjustmentIsolatedUFState::doResume * \details request to resume the ultrafiltration */ void View::VTreatmentAdjustmentIsolatedUFState::doEnd() { _data.requestedState = 2; // TODO Update during integration // _data.requestedState = GuiUFCommands::UF_CMD_RESUME; emit didAdjustment(_data); // notify the controllers to do the adjustment }