Index: sources/view/hd/data/VHDTreatmentStatesData.h =================================================================== diff -u -r64d87d540594252e8039ab2595016d98f1e3cc28 -raabacb1dbdd30968ec8bc8ffc6c97263b09db71b --- sources/view/hd/data/VHDTreatmentStatesData.h (.../VHDTreatmentStatesData.h) (revision 64d87d540594252e8039ab2595016d98f1e3cc28) +++ sources/view/hd/data/VHDTreatmentStatesData.h (.../VHDTreatmentStatesData.h) (revision aabacb1dbdd30968ec8bc8ffc6c97263b09db71b) @@ -38,15 +38,31 @@ { Q_OBJECT - PROPERTY( quint32, subMode , 0) - PROPERTY( quint32, ufState , 0) + 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) + 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 , false) + PROPERTY( bool , ufCompleted , false) + + // treatment paused state + // normally paused + PROPERTY( bool , txPaused , true ) + VIEW_DEC(VHDTreatmentStates, TreatmentStatesData) -private: public slots: }; }