#include "VTreatmentAdjustmentDryBicartDisconnect.h" // Project #include "GuiController.h" VIEW_DEF_CLASS_ADJUSTMENT(VTreatmentAdjustmentDryBicartDisconnect) void VTreatmentAdjustmentDryBicartDisconnect::initConnections() { ACTION_VIEW_CONNECTION(AdjustDryBicartDisconnectResponseData); ADJUST_VIEW_CONNECTION( AdjustDryBicartDisconnectRequestData); } void VTreatmentAdjustmentDryBicartDisconnect::onActionReceive(const AdjustDryBicartDisconnectResponseData &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::VTreatmentAdjustmentDryBicartDisconnect::doAdjustment * \details request command */ void View::VTreatmentAdjustmentDryBicartDisconnect::doDrain () { AdjustDryBicartDisconnectRequestData mData; mData.command = 0; // update later with FW common enum emit didAdjustment(mData); // notify the controllers to do the adjustment } /*! * \brief View::VTreatmentAdjustmentDryBicartDisconnect::doAdjustment * \details request command */ void View::VTreatmentAdjustmentDryBicartDisconnect::doDepressurize () { AdjustDryBicartDisconnectRequestData mData; mData.command = 1; // update later with FW common enum emit didAdjustment(mData); // notify the controllers to do the adjustment } /*! * \brief View::VTreatmentAdjustmentDryBicartDisconnect::doAdjustment * \details request command */ void View::VTreatmentAdjustmentDryBicartDisconnect::doCancel () { AdjustDryBicartDisconnectRequestData mData; mData.command = 2; // update later with FW common enum emit didAdjustment(mData); // notify the controllers to do the adjustment } /*! * \brief View::VTreatmentAdjustmentDryBicartDisconnect::doAdjustment * \details request command */ void View::VTreatmentAdjustmentDryBicartDisconnect::doDone () { AdjustDryBicartDisconnectRequestData mData; mData.command = 3; // update later with FW common enum emit didAdjustment(mData); // notify the controllers to do the adjustment }