Index: sources/model/td/adjustment/treatment/MTreatmentAdjustIsolatedUFVolumeEditResponse.h =================================================================== diff -u -r0a9e9579c7481eb5e0900fe604cac7bba6bb86ca -r3ba0ffbe79f453701c0e7f55e4dae72ca3e45142 --- sources/model/td/adjustment/treatment/MTreatmentAdjustIsolatedUFVolumeEditResponse.h (.../MTreatmentAdjustIsolatedUFVolumeEditResponse.h) (revision 0a9e9579c7481eb5e0900fe604cac7bba6bb86ca) +++ sources/model/td/adjustment/treatment/MTreatmentAdjustIsolatedUFVolumeEditResponse.h (.../MTreatmentAdjustIsolatedUFVolumeEditResponse.h) (revision 3ba0ffbe79f453701c0e7f55e4dae72ca3e45142) @@ -18,6 +18,7 @@ #include // Project +#include "MAbstract.h" #include "types.h" // forward declarations @@ -51,14 +52,26 @@ * | infoText | AdjustIsolatedUFVolumeEdit | * */ -class MAdjustIsolatedUFVolumeEditResponse +class MAdjustIsolatedUFVolumeEditResponse : public MAbstract { - // friends friend class ::tst_models; + QVariantList parameters() const override; + + struct { + Types::U32 mAccepted ; + Types::U32 mReason ; + Types::U32 mVolume ; + Types::U32 mDuration ; + Types::U32 mRate ; + } _data; + public: - QString stringPrefix = "AdjustUFVolumeEdit"; + Type_Enum typeText() const override { return Type_Enum::eEvent ; } + Unit_Enum unitText() const override { return Unit_Enum::eTD ; } + QString infoText() const override { return QString("AdjustIsolatedUFVolumeEdit") ; } + //NOTE: The correct order is followed in cpp to fill in the values regarding the payload byte orders. // The struct here is just the values not in correct order // since has been inherited from the confirm to borrow some struct variables. @@ -70,23 +83,11 @@ quint32 mRate = 0; /*!< rate value of type quint32 extracted out */ }; -private: - struct _Data { - Types::U32 mAccepted ; - Types::U32 mReason ; - Types::U32 mVolume ; - Types::U32 mDuration ; - Types::U32 mRate ; - } _data; - public: MAdjustIsolatedUFVolumeEditResponse () { } - 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 ; }; }