Index: sources/model/hd/adjustment/treatment/MTreatmentAdjustRequests.h =================================================================== diff -u -r79a6cfcb10472261f3ec26eaf0baf6f1245cd311 -rb5afbc61af03dd2e84acf8439cb6be1f022a2921 --- sources/model/hd/adjustment/treatment/MTreatmentAdjustRequests.h (.../MTreatmentAdjustRequests.h) (revision 79a6cfcb10472261f3ec26eaf0baf6f1245cd311) +++ sources/model/hd/adjustment/treatment/MTreatmentAdjustRequests.h (.../MTreatmentAdjustRequests.h) (revision b5afbc61af03dd2e84acf8439cb6be1f022a2921) @@ -39,7 +39,7 @@ * * | MSG | CAN ID | Box | Type | Ack | Src | Dst | Description | * |:----:|:------:|:---:|:------:|:---:|:---:|:---:|:-----------: | - * |0x0100| 0x020 | 6 | Cmd | N | HD | UI | Power Off | + * |0x0100| 0x020 | 6 | Cmd | N | UI | HD | Power Off | * * | Payload || * | || @@ -55,15 +55,46 @@ QString toString() { return toString({state}); } + // disabled coco end explicit MAdjustPowerOffReq(quint8 vState) : state(vState) { } - // disabled coco end static QString toString(const QVariantList &vParameters) { return MModel::toString("PowerOff", vParameters); } }; /*! + * \brief The MDuetConfirmUIr class + * \details The power off request model + * + * | MSG | CAN ID | Type | Ack | Src | Dst | Description | + * |:----:|:------:|:------:|:---:|:---:|:---:|:-----------: | + * |0x0100| 0x020 | Rsp | Y | UI | HD | Confirm | + * + * | Payload || + * | || + * | #1:(U08) | \ref state | + * + * + */ +class MDuetConfirmUIr : public MModel { +public: + quint32 mId = 0; /*!< Request ID */ + bool mConfirm = false; /*!< user confirm */ + + // disabled coco begin validated : Has been validated manually. + // This object is used statically for now, kept the logic for later usage. + QString toString() { + return toString({mId, mConfirm}); + } + // disabled coco end + + static QString toString(const QVariantList &vParameters) { + return MModel::toString("Confirm", vParameters); + } +}; + +/*! * \brief The MAdjustBloodDialysateReq class * \details The blood/dialysate rate change request model * @@ -503,6 +534,7 @@ } +typedef Model:: MDuetConfirmUIr DuetConfirmUIrData; typedef Model:: MAdjustPowerOffReq AdjustPowerOffRequestData; typedef Model:: MAdjustBloodDialysateReq AdjustBloodDialysateRequestData; typedef Model:: MAdjustDurationReq AdjustDurationRequestData;