/*! * * Copyright (c) 2021-2024 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 VPreTreatmentStatesData.h * \author (last) Behrouz NematiPour * \date (last) 01-Aug-2023 * \author (original) Behrouz NematiPour * \date (original) 11-Apr-2021 * */ #pragma once // Qt #include // Project #include "main.h" // Doxygen : do not remove #include "VView.h" #include "MPreTreatmentStatesData.h" // namespace namespace View { /*! * \brief The VPreTreatmentStates class * \details View for Model's data representation. * * \sa Model::MPreTreatmentStates * */ class VPreTreatmentStates : public QObject { Q_OBJECT // *** Only for test *** // Be careful it is always triggered on each message. TRIGGER ( bool , state , false ) // changes in case any message received. PROPERTY( quint8 , subMode , 0 ) ///< TD_Pre_Treatment_Mode_States , PROPERTY( quint8 , installationState , 0 ) ///< TD_PRE_TREATMENT_TUBING_SET_INSTALL_STATE , Tube set install state PROPERTY( quint8 , selfTestDryState , 0 ) ///< TD_PRE_TREATMENT_SELF_TEST_DRY_STATE , Self-tests when the cartridge is dry state PROPERTY( quint8 , primeState , 0 ) ///< TD_PRE_TREATMENT_PRIME_STATE , Prime blood and dialysate circuits and run wet self-tests state PROPERTY( quint8 , recirculateState , 0 ) ///< TD_PRE_TREATMENT_RECIRCULATE_STATE , Re-circulate blood and dialysate circuits state PROPERTY( quint8 , confirmRxState , 0 ) ///< TD_PRE_TREATMENT_CONFIRM_RX_STATE , User reviews and confirms prescription ( Confirm Rx ) PROPERTY( quint8 , heparinState , 0 ) ///< TD_PRE_TREATMENT_HEPARIN_SETUP_STATE , Heparin setup state PROPERTY( quint8 , patientConnectionState , 0 ) ///< TD_PRE_TREATMENT_PATIENT_CONNECTION_STATE , Patient connection state // Start pre-treatment mode state PROPERTY( bool , installation , false ) ///< TD_PRE_TREATMENT_TUBING_SET_INSTALL_STATE , Tube set install state PROPERTY( bool , selfTestDry , false ) ///< TD_PRE_TREATMENT_SELF_TEST_DRY_STATE , Self-tests when the cartridge is dry state PROPERTY( bool , prime , false ) ///< TD_PRE_TREATMENT_PRIME_STATE , Prime blood and dialysate circuits and run wet self-tests state PROPERTY( bool , recirculate , false ) ///< TD_PRE_TREATMENT_RECIRCULATE_STATE , Re-circulate blood and dialysate circuits state PROPERTY( bool , confirmRx , false ) ///< TD_PRE_TREATMENT_CONFIRM_RX_STATE , User reviews and confirms prescription ( Confirm Rx ) PROPERTY( bool , heparin , false ) ///< TD_PRE_TREATMENT_HEPARIN_SETUP_STATE , Heparin setup state PROPERTY( bool , patientConnection , false ) ///< TD_PRE_TREATMENT_PATIENT_CONNECTION_STATE , Patient connection state // Consumable and cartridge installation state // There is not state(enum) for this and it is always 0 for now. but will be used to notify UI about being in this state. PROPERTY( bool , installation_start , false ) ///< Consumable and cartridge installation state // Self tests dry state PROPERTY( bool , selfTestDry_start , false ) // Prime PROPERTY( bool , prime_start , false ) // Re-circulate blood and dialysate circuits state PROPERTY( bool , recirculate_start , false ) ///< PRE_TREATMENT_RECIRC_STATE , Pre-treatment recirculate state. PROPERTY( bool , recirculate_stopped , false ) ///< PRE_TREATMENT_RECIRC_STOPPED_STATE , Pre-treatment recirculate stopped state. // Create Rx state // There is not state(enum) for this and it is always 0 for now. but will be used to notify UI about being in this state. PROPERTY( bool , confirmRx_start , false ) ///< Confirm Rx state // Heparin state // There is not state(enum) for this and it is always 0 for now. but will be used to notify UI about being in this state. PROPERTY( bool , heparin_start , false ) ///< Heparin state // Patient connection state // There is not state(enum) for this and it is always 0 for now. but will be used to notify UI about being in this state. PROPERTY( bool , patientConnection_start , false ) ///< Patient connection state VIEW_DEC(VPreTreatmentStates, PreTreatmentStatesData) }; }