/*! * * 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 MTreatmentAdjustUltrafiltrationEditResponse.h * \author (last) Behrouz NemaiPour * \date (last) 16-Jul-2020 * \author (original) Behrouz NemaiPour * \date (original) 02-Jul-2020 * */ #pragma once // Qt #include // Project #include "MTreatmentAdjustUltrafiltrationConfirmResponse.h" #include "types.h" // forward declarations class tst_models; namespace Model { /*! * \brief The MAdjustUltrafiltrationEditResponse class * \details The uf vol. change response model * * | MSG | CAN ID | Box | Type | Ack | Src | Dst | Description | #1:(U32) | #2:(U32) | #1:(U32) | #2:(U32) | #3:(F32) | #4:(U32) | #5:(F32) | #6:(U32) | #7:(U32) | #8:(F32) | * |:----:|:------:|:---:|:------:|:---:|:---:|:---:|:-----------: |:--: |:--: |:--: |:--: |:--: |:--: |:--: |:--: |:--: |:--: | * |0x1300| 0x020 | 6 | Rsp | Y | HD | UI | UF Vol. Change Response | \ref Data::mAccepted | \ref Data::mReason | \ref Data::mAccepted | \ref Data::mReason | \ref Data::mVolume | \ref Data::mDuration | \ref Data::mRate | \ref Data::mDurationDiff | \ref Data::mRateDiff | \ref Data::mRateOld | * * \sa Data * */ class MAdjustUltrafiltrationEditResponse : public MAdjustUltrafiltrationConfirmResponse { // friends friend class ::tst_models; public: QString stringPrefix = "AdjustUFEdit"; struct Data : public MAdjustUltrafiltrationConfirmResponse::Data { qint32 mDurationDiff= 0; /*!< durationDiff value of type quint32 extracted out */ float mRateDiff = 0; /*!< rateDiff value of type float extracted out */ float mRateOld = 0; /*!< rateOld value of type float extracted out */ }; private: struct : public MAdjustUltrafiltrationConfirmResponse::_Data { Types::S32 mDurationDiff ; Types::F32 mRateDiff ; Types::F32 mRateOld ; } _data; public: MAdjustUltrafiltrationEditResponse () { } QString toString ( ) const ; void toVariantList ( QVariantList &vData ) const ; bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr); Data data() const; }; } typedef Model::MAdjustUltrafiltrationEditResponse::Data AdjustUltrafiltrationEditResponseData;