/*! * * 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 vtreatmentadjustmentduration.cpp * \author (last) Behrouz NemaiPour * \date (last) 09-Jun-2020 * \author (original) Behrouz NematiPour * \date (original) 19-May-2020 * */ #include "vtreatmentadjustmentduration.h" // Project #include "guicontroller.h" VIEW_DEF_CLASS_ADJUSTMENT(VTreatmentAdjustmentDuration, AdjustDurationResponseData) void VTreatmentAdjustmentDuration::initConnections() { ACTION_VIEW_CONNECTION(AdjustDurationResponseData); ADJUST_VIEW_CONNECTION( AdjustDurationRequestData); } void VTreatmentAdjustmentDuration::onActionReceive(const AdjustDurationResponseData &vData) { adjustment_Accepted ( vData.mAccepted ); adjustment_Reason ( vData.mReason ); duration ( vData.mDuration ); ultrafiltration ( vData.mUFVolume / 1000 ); // mL => L // *** 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 ); }