/*! * * Copyright (c) 2021-2022 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 MTreatmentRecirculateData.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 "MAbstract.h" #include "types.h" // forward declarations class tst_models; namespace Model { /*! * \brief The MTreatmentRecirculate class * \details The treatment Recirculate bolus data model * * | MSG | CAN ID | Box | Type | Ack | Src | Dst | Description | * |:----:|:------:|:---:|:------:|:---:|:---:|:---:|:-----------: | * |0x5A00| 0x020 | 6 | 1 Hz | N | HD | UI | Recirculate Progress Data | * * | Payload || * | || * | #1:(U32) | \ref Data::mTimeoutTotal | * | #2:(U32) | \ref Data::mTimeoutCountDown| * * \sa Data * \sa MAdjustRecirculateReq : Recirculate Request * \sa MAdjustRecirculateResponse : Recirculate Response * *

Logging info

* | || * | || * | typeText | Datum | * | unitText | HD | * | infoText | Recirculate | * */ class MTreatmentRecirculate : public MAbstract { // friends friend class ::tst_models; QVariantList parameters() const override; struct { Types::U32 mTimeoutTotal ; Types::U32 mTimeoutCountDown; } _data; public: Type_Enum typeText() const override { return Type_Enum::eDatum ; } Unit_Enum unitText() const override { return Unit_Enum::eHD ; } QString infoText() const override { return QString("Recirculate") ; } struct Data { quint32 mTimeoutTotal = 0; ///< Total Timeout of Recirculate delivery quint32 mTimeoutCountDown = 0; ///< Current Timeout count down of Recirculate delivery }; public: MTreatmentRecirculate () { } bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override; Data data ( ) const ; }; } typedef Model::MTreatmentRecirculate::Data TreatmentRecirculateData;