Index: sources/model/hd/adjustment/MTreatmentAdjustBloodDialysateResponse.h =================================================================== diff -u -r6ae83fa9a1a3204864fc5b50fe906ac09e9c1ea5 -r30f83b2813e68ae3c2806399bf808b642c215b67 --- sources/model/hd/adjustment/MTreatmentAdjustBloodDialysateResponse.h (.../MTreatmentAdjustBloodDialysateResponse.h) (revision 6ae83fa9a1a3204864fc5b50fe906ac09e9c1ea5) +++ sources/model/hd/adjustment/MTreatmentAdjustBloodDialysateResponse.h (.../MTreatmentAdjustBloodDialysateResponse.h) (revision 30f83b2813e68ae3c2806399bf808b642c215b67) @@ -17,28 +17,24 @@ #include // Project +#include "MAbstract.h" #include "types.h" // forward declarations class tst_models; namespace Model { -class MAdjustBloodDialysateResponse { +class MAdjustBloodDialysateResponse : public MAbstract { // friends friend class ::tst_models; -public: - QString stringPrefix = "Adjust Blood/Dialisate"; - struct Data { - bool mAccepted = 0; /*!< Accepted value of type quint32 extracted out */ - quint32 mReason = 0; /*!< Reason value of type quint32 extracted out */ - quint32 mBloodRate = 0; /*!< BloodRate value of type quint32 extracted out */ - quint32 mDialydateReate = 0; /*!< DialydateReate value of type quint32 extracted out */ - }; + Type_Enum typeText () const override { return Type_Enum::eEvent; } + Unit_Enum unitText () const override { return Unit_Enum::eHD ; } + QString infoText () const override { return QString("AdjustBloodDialisate"); } + QVariantList parameters() const override; -private: struct { Types::U32 mAccepted ; Types::U32 mReason ; @@ -47,13 +43,17 @@ } _data; public: + struct Data { + bool mAccepted = 0; /*!< Accepted value of type quint32 extracted out */ + quint32 mReason = 0; /*!< Reason value of type quint32 extracted out */ + quint32 mBloodRate = 0; /*!< BloodRate value of type quint32 extracted out */ + quint32 mDialydateReate = 0; /*!< DialydateReate value of type quint32 extracted out */ + }; + MAdjustBloodDialysateResponse () { } - QString toString ( ) const ; - void toVariantList ( QVariantList &vData ) const ; - bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr); - - Data data() const; + bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override; + Data data ( ) const ; }; }