/*! * * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file MHDVersionResponse.h * \author (last) Peman Montazemi * \date (last) 6-Nov-2020 * \author (original) Peman Montazemi * \date (original) 4-Nov-2020 * */ #pragma once // Qt #include // Project #include "MAbstract.h" #include "types.h" // forward declarations class tst_models; namespace Model { class MAdjustHDVersionsResponse : public MAbstract { // friends friend class ::tst_models; QVariantList parameters() const override; struct { Types::U08 mMajor ; Types::U08 mMinor ; Types::U08 mMicro ; Types::U16 mBuild ; Types::U08 mFPGAId ; Types::U08 mFPGAMajor ; Types::U08 mFPGAMinor ; Types::U08 mFPGALab ; } _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("HDVersions") ; } struct Data { quint8 mMajor = 0; /*!< HD Versions Major value of type quint08 extracted out */ quint8 mMinor = 0; /*!< HD Versions Minor value of type quint08 extracted out */ quint8 mMicro = 0; /*!< HD Versions Micro value of type quint08 extracted out */ quint16 mBuild = 0; /*!< HD Versions Build value of type quint08 extracted out */ quint8 mFPGAId = 0; /*!< HD Versions FPGA ID value of type quint08 extracted out */ quint8 mFPGAMajor = 0; /*!< HD Versions FPGA Major value of type quint08 extracted out */ quint8 mFPGAMinor = 0; /*!< HD Versions FPGA Minor value of type quint08 extracted out */ quint8 mFPGALab = 0; /*!< HD Versions FPGA Lab value of type quint08 extracted out */ }; MAdjustHDVersionsResponse () { } bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override; Data data ( ) const ; }; } typedef Model::MAdjustHDVersionsResponse::Data AdjustHDVersionsResponseData;