/*! * * 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 vtreatmentadjustmentflows.cpp * \date 5/19/2020 * \author Behrouz NematiPour * */ #include "vtreatmentadjustmentflows.h" // Project #include "guicontroller.h" VIEW_DEF_CLASS_ADJUSTMENT(VTreatmentAdjustmentFlows, AdjustBloodDialysateResponseData) void VTreatmentAdjustmentFlows::initConnections() { ACTION_VIEW_CONNECTION(AdjustBloodDialysateResponseData); ADJUST_VIEW_CONNECTION( AdjustBloodDialysateRequestData); } void VTreatmentAdjustmentFlows::onActionReceive(const AdjustBloodDialysateResponseData &vData) { adjustment_Accepted ( vData.mAccepted ); adjustment_Reason ( vData.mReason ); bloodFlow_FlowSetPoint ( vData.mBloodRate ); dialysateFlow_FlowSetPoint ( vData.mDialydateReate ); // *** 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 ); }