/*! * * 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 VPostTreatmentAdjustDisposablesRemovalConfirm.cpp * \author (last) Behrouz NematiPour * \date (last) 11-Apr-2021 * \author (original) Behrouz NematiPour * \date (original) 11-Apr-2021 * */ #include "VPostTreatmentAdjustDisposablesRemovalConfirm.h" // Project #include "GuiController.h" VIEW_DEF_CLASS_ADJUSTMENT(VPostTreatmentAdjustmentDisposablesRemovalConfirm) /*! \brief Connection Initializer \details All the class signal/slot connections are defined here. */ void View::VPostTreatmentAdjustmentDisposablesRemovalConfirm::initConnections() { ADJUST_VIEW_CONNECTION(AdjustDisposablesRemovalConfirmRequestData); ACTION_VIEW_CONNECTION(AdjustDisposablesRemovalConfirmResponseData); } /*! * \brief VPostTreatmentAdjustmentUltrafiltrationInit::onActionReceive * \details received response model data handler * \param vData - model data */ void View::VPostTreatmentAdjustmentDisposablesRemovalConfirm::onActionReceive(const AdjustDisposablesRemovalConfirmResponseData &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::VPostTreatmentAdjustmentDisposablesRemovalConfirm::doConfirm * \details the invocable slot to send user's Disposables Removal confirm */ void View::VPostTreatmentAdjustmentDisposablesRemovalConfirm::doConfirm() { AdjustDisposablesRemovalConfirmRequestData data; emit didAdjustment(data); }