Index: sources/view/hd/adjustment/pretreatment/VPreTreatmentAdjustmentDisposablesConfirm.cpp =================================================================== diff -u -r88563177f10f20ced98750b2e40036201728131d -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 --- sources/view/hd/adjustment/pretreatment/VPreTreatmentAdjustmentDisposablesConfirm.cpp (.../VPreTreatmentAdjustmentDisposablesConfirm.cpp) (revision 88563177f10f20ced98750b2e40036201728131d) +++ sources/view/hd/adjustment/pretreatment/VPreTreatmentAdjustmentDisposablesConfirm.cpp (.../VPreTreatmentAdjustmentDisposablesConfirm.cpp) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) @@ -1,15 +1,15 @@ /*! * - * Copyright (c) 2019-2020 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 VPreTreatmentAdjustmentDisposablesConfirm.cpp * \author (last) Behrouz NematiPour - * \date (last) 22-Mar-2021 + * \date (last) 04-Mar-2022 * \author (original) Behrouz NematiPour - * \date (original) 22-Mar-2021 + * \date (original) 11-Apr-2021 * */ #include "VPreTreatmentAdjustmentDisposablesConfirm.h" @@ -23,10 +23,26 @@ \details All the class signal/slot connections are defined here. */ void View::VPreTreatmentAdjustmentDisposablesConfirm::initConnections() { - ADJUST_VIEW_CONNECTION(AdjustDisposablesConfirmRequestData); + ADJUST_VIEW_CONNECTION(AdjustDisposablesConfirmRequestData ); + ACTION_VIEW_CONNECTION(AdjustDisposablesConfirmResponseData); } /*! + * \brief VPreTreatmentAdjustmentUltrafiltrationInit::onActionReceive + * \details received response model data handler + * \param vData - model data + */ +void View::VPreTreatmentAdjustmentDisposablesConfirm::onActionReceive(const AdjustDisposablesConfirmResponseData &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 ); +} + +/*! * \brief View::VPreTreatmentAdjustmentDisposablesConfirm::doConfirm * \details the invocable slot to send user's Disposables installation confirm */