Index: sources/model/hd/adjustment/MTreatmentAdjustRequests.h =================================================================== diff -u -r14c541d2b780b0a244bc84860aa565cf8dd7fe4b -r4bbec52d2257cfdef37604e3453846e501a2af91 --- sources/model/hd/adjustment/MTreatmentAdjustRequests.h (.../MTreatmentAdjustRequests.h) (revision 14c541d2b780b0a244bc84860aa565cf8dd7fe4b) +++ sources/model/hd/adjustment/MTreatmentAdjustRequests.h (.../MTreatmentAdjustRequests.h) (revision 4bbec52d2257cfdef37604e3453846e501a2af91) @@ -246,17 +246,7 @@ */ class MAdjustSalineReq : public MModel { public: - /*! - * \brief The State enum - * \details The saline bolus requested state. - * There is no FW shared enum for this so has been defined here as documented in "Messages List". - */ - enum State { - eStop = 0, - eStart = 1, - }; - - State requestedState = eStop; // the requested state. Initially it's Stop => start. + GuiSalineCommands requestedState = GuiSalineCommands::SALINE_CMD_STOP; // the requested state. Initially it's Stop => start. // coco begin validated : Has been validated manually. // This object is used statically for now, kept the logic for later usage. QString toString() { @@ -269,6 +259,37 @@ }; /*! + * \brief The MAdjustHeparinReq class + * \details The model to request the Heparin state + * + * | MSG | CAN ID | M.Box | Type | Ack | Src | Dest | Description | + * |:----:|:------:|:-----:|:----:|:---:|:---:|:----:|:---------------:| + * |0x4B00| 0x100 | 9 | Req | Y | UI | HD | Heparin Request | + * + * | Payload || + * | || + * | #1:(U32) | \ref requestedState | + * + * \sa State + * \sa MTreatmentHeparin : Heparin Data + * \sa MAdjustHeparinResponse : Heparin Response + * + */ +class MAdjustHeparinReq : public MModel { +public: + GuiHeparinCommands requestedState = GuiHeparinCommands::HEPARIN_CMD_PAUSE ; // the requested state. Initially it's running with Initial Bolus. + // coco begin validated : Has been validated manually. + // This object is used statically for now, kept the logic for later usage. + QString toString() { + return toString({requestedState}); + } + // coco end + static QString toString(const QVariantList &vParameters) { + return MModel::toString("AdjustHeparin", vParameters); + } +}; + +/*! * \brief The MAdjustPressuresLimitsReq class * \details The model to request the pressures limits adjustment * @@ -549,6 +570,7 @@ typedef Model:: MAdjustUltrafiltrationEditReq AdjustUltrafiltrationEditRequestData; typedef Model::MAdjustUltrafiltrationConfirmReq AdjustUltrafiltrationConfirmRequestData; typedef Model:: MAdjustSalineReq AdjustSalineRequestData; +typedef Model:: MAdjustHeparinReq AdjustHeparinRequestData; typedef Model:: MAdjustPressuresLimitsReq AdjustPressuresLimitsRequestData; typedef Model:: MStartTreatmentReq StartTreatmentRequestData; typedef Model:: MConfirmTreatmentReq ConfirmTreatmentRequestData;