/*! * * Copyright (c) 2021-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 MTreatmentAdjustUltrafiltrationConfirmResponse.h * \author (last) Behrouz NematiPour * \date (last) 11-Apr-2021 * \author (original) Behrouz NematiPour * \date (original) 11-Apr-2021 * */ #pragma once // Qt #include // Project #include "types.h" // forward declarations class tst_models; namespace Model { /*! * \brief The MAdjustUltrafiltrationConfirmResponse class * \details The UF vol. change confirmation response model * * | MSG | CAN ID | Box | Type | Ack | Src | Dst | Description | * |:----:|:------:|:---:|:------:|:---:|:---:|:---:|:-----------: | * |0x6700| 0x040 | 6 | Rsp | Y | HD | UI | UF Vol. Change Confirmation Response | * * | Payload || * | || * | #1:(U32) | \ref Data::mAccepted | * | #2:(U32) | \ref Data::mReason | * | | | * | #3:(F32) | \ref Data::mVolume | * | #4:(U32) | \ref Data::mDuration | * | #5:(F32) | \ref Data::mRate | * * \sa Data * *

Logging info

* | || * | || * | typeText | Event | * | unitText | HD | * | infoText | AdjustUFConfirm | * */ class MAdjustUltrafiltrationConfirmResponse { // friends friend class ::tst_models; public: QString stringPrefix = "AdjustUFConfirm"; struct Data { bool mAccepted = 0; /*!< Accepted value of type quint32 extracted out */ quint32 mReason = 0; /*!< Reason value of type quint32 extracted out */ float mVolume = 0; /*!< volume value of type float extracted out */ quint32 mDuration = 0; /*!< duration value of type quint32 extracted out */ float mRate = 0; /*!< rate value of type float extracted out */ }; protected: struct _Data { Types::U32 mAccepted ; Types::U32 mReason ; Types::F32 mVolume ; Types::U32 mDuration ; Types::F32 mRate ; } _data; public: MAdjustUltrafiltrationConfirmResponse () { } QString toString ( ) const ; void toVariantList ( QVariantList &vData ) const ; bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr); Data data() const; }; } typedef Model::MAdjustUltrafiltrationConfirmResponse::Data AdjustUltrafiltrationConfirmResponseData;