/*! * * 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 VPostTreatmentStatesData.cpp * \author (last) Behrouz NematiPour * \date (last) 01-Mar-2021 * \author (original) Behrouz NematiPour * \date (original) 13-Aug-2020 * */ #include "VPostTreatmentStatesData.h" // Project #include "GuiController.h" VIEW_DEF(VPostTreatmentStates, PostTreatmentStatesData) /*! * \brief VPostTreatmentStates::onActionReceive * \details sets the properties for the received data of Treatment States * \param vData - Treatment States data */ void View::VPostTreatmentStates::onActionReceive(const PostTreatmentStatesData &vData) { subMode ( vData.mSubMode ); patientDisconnection ( vData.mSubMode == GuiPostTreatmentStates::HD_POST_TREATMENT_PATIENT_DISCONNECTION_STATE ); drainReservoirs ( vData.mSubMode == GuiPostTreatmentStates::HD_POST_TREATMENT_DRAIN_RESERVOIRS_STATE ); verify ( vData.mSubMode == GuiPostTreatmentStates::HD_POST_TREATMENT_VERIFY_STATE ); // DEBUG: *** Only for test *** // Be careful it is always triggered on each message. // It should only be used temporarily for debugging and shall be removed immediately after the test, // since it is a TRIGGER will always be called regardless of state value change // and will force whatever code attached to it to be called. state(true); }