#pragma once // Qt #include // Project #include "MAbstract.h" #include "types.h" // forward declarations class tst_models; namespace Model { /*! * \brief The MAdjustDGServiceResponse class * \details The HD Date and Time adjustment response model * * | MSG | CAN ID | Type | Ack | Src | Dest | Description | * |:----:|:------:|:----:|:---:|:---:|:----:|:---------------------:| * |0x8C00| 0x070 | Rsp | Y | DG | UI | Service Dates | * * | Payload || * | || * | #1:(U32) | \ref Data::mLastServiceDateEpoch | * | #2:(U32) | \ref Data::mServiceIntervalSeconds | * * \sa Data * *

Logging info

* | || * | || * | typeText | Event | * | unitText | DG | * | infoText | ServiceDates | * */ class MAdjustDGServiceResponse : public MAbstract { // friends friend class ::tst_models; QVariantList parameters() const override; struct { Types::U32 mLastServiceDateEpoch; Types::U32 mServiceIntervalSeconds; } _data; public: Type_Enum typeText () const override { return Type_Enum::eEvent ; } Unit_Enum unitText () const override { return Unit_Enum::eHD ; } QString infoText () const override { return QString("ServiceDates") ; } struct Data { quint32 mLastServiceDateEpoch = 0; quint32 mServiceIntervalSeconds = 0; }; MAdjustDGServiceResponse () { } bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override; Data data ( ) const ; }; } typedef Model::MAdjustDGServiceResponse::Data AdjustDGServiceResponseData;