/*! * * 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 vtreatmentultrafiltrationconfirm.cpp * \date 6/1/2020 * \author Behrouz NematiPour * */ #include "vtreatmentultrafiltrationconfirm.h" // Project #include "guicontroller.h" VIEW_DEF_CLASS_ADJUSTMENT(VTreatmentUltrafiltrationConfirm, AdjustUltrafiltrationConfirmResponseData) void VTreatmentUltrafiltrationConfirm::initConnections() { //ACTION_RECEIVE_BRIDGE_CONNECTION(Gui::_GuiController, AdjustUltrafiltrationConfirmResponseData); connect(this , SIGNAL(didAdjustment(const AdjustUltrafiltrationConfirmRequestData &)), &_GuiController, SLOT( doAdjustment(const AdjustUltrafiltrationConfirmRequestData &))); } //void VTreatmentUltrafiltrationConfirm::onActionReceive(const AdjustUltrafiltrationConfirmResponseData &vData) //{ // adjustment_Accepted ( vData.mAccepted ); // if (adjustment_Accepted()) { // // the response doesn't have the state so the requested state which has been accepted is used. // optionRate ( _data.requestedState == AdjustUltrafiltrationConfirmRequestData::eRate ); // optionDuration ( _data.requestedState == AdjustUltrafiltrationConfirmRequestData::eDuration ); // } // // // *** 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 ); //} void View::VTreatmentUltrafiltrationConfirm::doOptionRate(float vVolume) { _data.volume = vVolume; _data.option = AdjustUltrafiltrationConfirmRequestData::eRate; emit didAdjustment(_data); } void View::VTreatmentUltrafiltrationConfirm::doOptionDuration(float vVolume) { _data.volume = vVolume; _data.option = AdjustUltrafiltrationConfirmRequestData::eDuration; emit didAdjustment(_data); }