Index: sources/view/hd/adjustment/posttreatment/VPostTreatmentAdjustPatientDisconnectionConfirm.cpp =================================================================== diff -u -r8f8fc462e36e2ea9fbd236b86aaab5f048c17509 -r7f976c0ffdc727ddb89c1fe11ad250cb724cc4ce --- sources/view/hd/adjustment/posttreatment/VPostTreatmentAdjustPatientDisconnectionConfirm.cpp (.../VPostTreatmentAdjustPatientDisconnectionConfirm.cpp) (revision 8f8fc462e36e2ea9fbd236b86aaab5f048c17509) +++ sources/view/hd/adjustment/posttreatment/VPostTreatmentAdjustPatientDisconnectionConfirm.cpp (.../VPostTreatmentAdjustPatientDisconnectionConfirm.cpp) (revision 7f976c0ffdc727ddb89c1fe11ad250cb724cc4ce) @@ -23,8 +23,9 @@ \details All the class signal/slot connections are defined here. */ void View::VPostTreatmentAdjustmentPatientDisconnectionConfirm::initConnections() { - ADJUST_VIEW_CONNECTION( AdjustPatientDisconnectionNotifyRequestData); - ADJUST_VIEW_CONNECTION(AdjustPatientDisconnectionConfirmRequestData); + ADJUST_VIEW_CONNECTION( AdjustPatientDisconnectionNotifyRequestData); + ADJUST_VIEW_CONNECTION( AdjustPatientDisconnectionConfirmRequestData); + ACTION_VIEW_CONNECTION(AdjustPatientDisconnectionConfirmResponseData); } /*! @@ -44,3 +45,18 @@ AdjustPatientDisconnectionConfirmRequestData data; emit didAdjustment(data); } + +/*! + * \brief VPostTreatmentAdjustmentPatientDisconnectionConfirm::onActionReceive + * \details received response model data handler + * \param vData - model data + */ +void View::VPostTreatmentAdjustmentPatientDisconnectionConfirm::onActionReceive(const AdjustPatientDisconnectionConfirmResponseData &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. *** + adjustment ( true ); +}