/*! * * 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 MTreatmentAdjustBloodDialysateResponse.h * \date 3/23/2020 * \author Behrouz NematiPour * */ #pragma once // Qt #include // Project #include "MAbstract.h" #include "types.h" // forward declarations class tst_models; namespace Model { /*! * \brief The MBlooddialysateratechangeResponse class * \details The blood/dialysate rate change response model * * | MSG | CAN ID | Box | Type | Ack | Src | Dst | Description | #1:(U32) | #2:(U32) | #3:(U32) | #4:(U32) | * |:----:|:------:|:---:|:------:|:---:|:---:|:---:|:-----------: |:--: |:--: |:--: |:--: | * |0x1800| 0x020 | 6 | Rsp | Y | HD | UI | Blood/dialysate rate change Response | \ref Data::mAccepted | \ref Data::mReason | \ref Data::mBloodRate | \ref Data::mDialysateRate | * * \sa Data * */ class MAdjustBloodDialysateResponse : public MAbstract { // friends friend class ::tst_models; QVariantList parameters() const override; struct { Types::U32 mAccepted ; Types::U32 mReason ; Types::U32 mBloodRate ; Types::U32 mDialysateRate ; } _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("AdjustBloodDialysate"); } struct Data { bool mAccepted = 0; /*!< Accepted value of type quint32 extracted out */ quint32 mReason = 0; /*!< Reason value of type quint32 extracted out */ quint32 mBloodRate = 0; /*!< BloodRate value of type quint32 extracted out */ quint32 mDialysateRate = 0; /*!< DialysateRate value of type quint32 extracted out */ }; MAdjustBloodDialysateResponse () { } bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override; Data data ( ) const ; }; } typedef Model::MAdjustBloodDialysateResponse::Data AdjustBloodDialysateResponseData;