/*! * * Copyright (c) 2023-2024 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 MDuetRoWaterDG.h * \author (last) Dara Navaei * \date (last) 08-May-2024 * \author (original) Behrouz NematiPour * \date (original) 03-Apr-2023 * */ #pragma once // Qt #include // Project #include "MAdjustRequestsBase.h" #include "MAbstract.h" #include "types.h" // forward declarations class tst_models; namespace Model { /*! * \brief The MAdjustRoWaterModeResponse class * \details The DD RO Water Mode Status Query model * * | MSG | CAN ID | Type | Ack | Src | Dest | Description | * |:----:|:------:|:----:|:---:|:---:|:----:|:-----------:| * |0xEE00| 0x070 | Rsp | Y | DD | UI | RO Water Mode | * * | Payload || * | || * | #1: (U32) | \ref Data::mAccepted | * | #2: (U32) | \ref Data::mReason | * \sa Data * *

Logging info

* | || * | || * | typeText | Event | * | unitText | DD | * */ class MAdjustRoWaterModeResponse : public MAbstract { // friends friend class ::tst_models; QVariantList parameters() const override; struct { Types::U32 mAccepted; Types::U32 mReason ; } _data; public: Type_Enum typeText () const override { return Type_Enum::eEvent ; } Unit_Enum unitText () const override { return Unit_Enum::eDD ; } QString infoText () const override { return QString("AdjustRoWaterMode") ; } struct Data { quint32 mAccepted = 0; /*!< Accepted value of type quint32 extracted out */ quint32 mReason = 0; /*!< Reason value of type quint32 extracted out */ }; MAdjustRoWaterModeResponse () { } bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override; Data data ( ) const ; }; } typedef Model::MAdjustRoWaterModeResponse::Data AdjustRoWaterModeResponseData;