/*! * * Copyright (c) 2019-2020 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 VPreTreatmentAdjustmentStartTreatment.cpp * \author (last) Behrouz NematiPour * \date (last) 22-Mar-2021 * \author (original) Behrouz NematiPour * \date (original) 22-Mar-2021 * */ #include "VPreTreatmentAdjustmentStartTreatment.h" // Project #include "GuiController.h" VIEW_DEF_CLASS_ADJUSTMENT(VPreTreatmentAdjustmentStartTreatment) /*! \brief Connection Initializer \details All the class signal/slot connections are defined here. */ void View::VPreTreatmentAdjustmentStartTreatment::initConnections() { ACTION_VIEW_CONNECTION(AdjustStartTreatmentResponseData); ADJUST_VIEW_CONNECTION(AdjustStartTreatmentRequestData ); } /*! * \brief VPreTreatmentAdjustmentUltrafiltrationInit::onActionReceive * \details received response model data handler * \param vData - model data */ void View::VPreTreatmentAdjustmentStartTreatment::onActionReceive(const AdjustStartTreatmentResponseData &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::VPreTreatmentAdjustmentStartTreatment::doPrime * \details the invocable slot to send user's Disposables installation Prime */ void View::VPreTreatmentAdjustmentStartTreatment::doStart() { AdjustStartTreatmentRequestData data; emit didAdjustment(data); }