#include "VTreatmentAdjustmentHDFState.h" // Project #include "GuiController.h" VIEW_DEF_CLASS_ADJUSTMENT(VTreatmentAdjustmentHDFState) void VTreatmentAdjustmentHDFState::initConnections() { ACTION_VIEW_CONNECTION(AdjustHDFStateResponseData); ADJUST_VIEW_CONNECTION( AdjustHDFStateRequestData); } void VTreatmentAdjustmentHDFState::onActionReceive(const AdjustHDFStateResponseData &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::VTreatmentAdjustmentHDFState::doAdjustment * \details request state of hdf state */ void View::VTreatmentAdjustmentHDFState::doPause () { AdjustHDFStateRequestData mData; mData.state = 0; // update later with FW common enum emit didAdjustment(mData); // notify the controllers to do the adjustment } /*! * \brief View::VTreatmentAdjustmentHDFState::doAdjustment * \details request state of hdf state */ void View::VTreatmentAdjustmentHDFState::doResume () { AdjustHDFStateRequestData mData; mData.state = 1; // update later with FW common enum emit didAdjustment(mData); // notify the controllers to do the adjustment }