Index: sources/model/hd/adjustment/MTreatmentAdjustRequests.h =================================================================== diff -u -r93b6ad6b18c505fedab37d95dc87be61db48641c -r3b4b381d23c267fbc5af29f29e231f03e26ca23b --- sources/model/hd/adjustment/MTreatmentAdjustRequests.h (.../MTreatmentAdjustRequests.h) (revision 93b6ad6b18c505fedab37d95dc87be61db48641c) +++ sources/model/hd/adjustment/MTreatmentAdjustRequests.h (.../MTreatmentAdjustRequests.h) (revision 3b4b381d23c267fbc5af29f29e231f03e26ca23b) @@ -25,8 +25,8 @@ /*! * Simple request models - * These are models to send the request for the doAdjustmet - * The the only reason thy have been defined to help overloadding the adjusmtent methods + * These are models to send the request for the doAdjustment + * The the only reason thy have been defined to help overloading the adjustment methods * Otherwise the parameters are so tiny models. */ @@ -67,7 +67,7 @@ } // coco end static QString toString(const QVariantList &vParameters) { - return MModel::toString("AdjustBloodDialisate", vParameters); + return MModel::toString("AdjustBloodDialysate", vParameters); } }; @@ -136,6 +136,24 @@ } }; +class MAdjustSalineReq : public MModel { +public: + enum State { + eStop = 0, + eStart = 1, + }; + State requestedState = eStop; // 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() { + return toString({requestedState}); + } + // coco end + static QString toString(const QVariantList &vParameters) { + return MModel::toString("AdjustSaline", vParameters); + } +}; + class MAlarmSilenceReq : public MModel { public: bool state = 0; @@ -158,5 +176,6 @@ typedef Model:: MAdjustUltrafiltrationStateReq AdjustUltrafiltrationStateRequestData; typedef Model:: MAdjustUltrafiltrationEditReq AdjustUltrafiltrationEditRequestData; typedef Model::MAdjustUltrafiltrationConfirmReq AdjustUltrafiltrationConfirmRequestData; +typedef Model:: MAdjustSalineReq AdjustSalineRequestData; typedef Model:: MAlarmSilenceReq AlarmSilenceRequestData;