/*! * * 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) 04-Mar-2022 * \author (original) Behrouz NematiPour * \date (original) 11-Apr-2021 * */ #include "VPreTreatmentAdjustmentDisposablesConfirm.h" // Project #include "GuiController.h" VIEW_DEF_CLASS_ADJUSTMENT(VPreTreatmentAdjustmentDisposablesConfirm) /*! \brief Connection Initializer \details All the class signal/slot connections are defined here. */ void View::VPreTreatmentAdjustmentDisposablesConfirm::initConnections() { 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 */ void View::VPreTreatmentAdjustmentDisposablesConfirm::doConfirm() { AdjustDisposablesConfirmRequestData data; emit didAdjustment(data); }