Index: sources/view/hd/adjustment/posttreatment/VPostTreatmentAdjustPatientDisconnectionConfirm.cpp =================================================================== diff -u -rf77d1595d633632cdedc5095a0cac07a7cca1251 -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 --- sources/view/hd/adjustment/posttreatment/VPostTreatmentAdjustPatientDisconnectionConfirm.cpp (.../VPostTreatmentAdjustPatientDisconnectionConfirm.cpp) (revision f77d1595d633632cdedc5095a0cac07a7cca1251) +++ sources/view/hd/adjustment/posttreatment/VPostTreatmentAdjustPatientDisconnectionConfirm.cpp (.../VPostTreatmentAdjustPatientDisconnectionConfirm.cpp) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) @@ -1,13 +1,13 @@ /*! * - * Copyright (c) 2021-2023 Diality Inc. - All Rights Reserved. + * Copyright (c) 2021-2024 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file VPostTreatmentAdjustPatientDisconnectionConfirm.cpp * \author (last) Behrouz NematiPour - * \date (last) 11-Apr-2021 + * \date (last) 11-Aug-2023 * \author (original) Behrouz NematiPour * \date (original) 11-Apr-2021 * @@ -23,14 +23,40 @@ \details All the class signal/slot connections are defined here. */ void View::VPostTreatmentAdjustmentPatientDisconnectionConfirm::initConnections() { - ADJUST_VIEW_CONNECTION(AdjustPatientDisconnectionNotifyRequestData); + ADJUST_VIEW_CONNECTION( AdjustPatientDisconnectionNotifyRequestData); + ADJUST_VIEW_CONNECTION( AdjustPatientDisconnectionConfirmRequestData); + ACTION_VIEW_CONNECTION(AdjustPatientDisconnectionConfirmResponseData); } /*! + * \brief View::VPostTreatmentAdjustmentPatientDisconnectionConfirm::doNotify + * \details the invocable slot to send user's Patient Disconnection notify + */ +void View::VPostTreatmentAdjustmentPatientDisconnectionConfirm::doNotify() { + AdjustPatientDisconnectionNotifyRequestData data; + emit didAdjustment(data); +} + +/*! * \brief View::VPostTreatmentAdjustmentPatientDisconnectionConfirm::doConfirm * \details the invocable slot to send user's Patient Disconnection confirm */ void View::VPostTreatmentAdjustmentPatientDisconnectionConfirm::doConfirm() { - AdjustPatientDisconnectionNotifyRequestData data; + 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 ); +}