/*! * * Copyright (c) 2021-2025 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 VTreatmentAdjustmentDialysateFlowRate.cpp * \author (last) Stephen Quong * \date (last) 15-Nov-2025 * \author (original) Stephen Quong * \date (original) 15-Nov-2025 * */ #include "VTreatmentAdjustmentDialysateFlowRate.h" // Project #include "GuiController.h" VIEW_DEF_CLASS_ADJUSTMENT(VTreatmentAdjustmentDialysateFlowRate) void VTreatmentAdjustmentDialysateFlowRate::initConnections() { ACTION_VIEW_CONNECTION(AdjustDialysateFlowRateResponseData); ADJUST_VIEW_CONNECTION(AdjustDialysateFlowRateRequestData ); } void VTreatmentAdjustmentDialysateFlowRate::onActionReceive(const AdjustDialysateFlowRateResponseData &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 doAdjustment * \details the invocable slot to adjust the dialysate flow rate * \param vDialysateFlowRate - dialysate flow rate adjusted value */ void VTreatmentAdjustmentDialysateFlowRate::doAdjustment(const quint32 vDialysateFlowRate) { _data.dialysateFlowRate = vDialysateFlowRate; emit didAdjustment(_data); }