/*! * * 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 VHDTreatmentStatesData.h * \author (last) Behrouz NematiPour * \date (last) 08-Sep-2020 * \author (original) Behrouz NematiPour * \date (original) 13-Aug-2020 * */ #pragma once // Qt #include // Project #include "main.h" // Doxygen : don't remove #include "MModel.h" #include "VView.h" #include "GuiGlobals.h" // namespace using namespace Gui; namespace View { /*! * \brief The VHDTreatmentStates class * \details View for Model's data representation. * * \sa Model::MTreatmentStates * */ class VHDTreatmentStates : public QObject { Q_OBJECT PROPERTY( quint32, subMode , 0) PROPERTY( quint32, ufState , 0) // coco begin validated: Validated manually, but has not been used yet. // instead VTreatmentAdjustmentSaline::isStarted is used which has more control over the saline state. PROPERTY( quint32, salineState , 0) // coco end // these properties are mutually exclusive // and if one becomes true the other ones become false at the same time // so on each change we were going to have multiple signal emits. // but since it is not happening more often Property is used. // otherwise it should be implemented as a single signal with these properties as parameters. // also start UF_START_STATE has been intentionally ignored // because it's only useful in FW implementation and it immediately changes to another state. PROPERTY( bool , ufPaused , false) PROPERTY( bool , ufRunning , false) PROPERTY( bool , ufOff , true ) // default state PROPERTY( bool , ufCompleted , false) // treatment paused state // normally paused PROPERTY( bool , txPaused , true ) VIEW_DEC(VHDTreatmentStates, TreatmentStatesData) public slots: }; }