/*! * * 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 MDisinfectDGFlushData.h * \author (last) Behrouz NematiPour * \date (last) 18-Apr-2021 * \author (original) Behrouz NematiPour * \date (original) 18-Apr-2021 * */ #pragma once // Qt #include // Project #include "MAbstract.h" #include "types.h" // forward declarations class tst_models; namespace Model { /*! * \brief The MDisinfectDGFlush class * \details The progress time data model * * | MSG | CAN ID | Box | Type | Ack | Src | Dst | Description | * |:----:|:------:|:---:|:------:|:---:|:---:|:---:|:-----------:| * |0x8200| 0x020 | 7 | 1 Hz | N | HD | All | Disinfect DG Flush Progress | * * | Payload || * | || * | #1:(U32) | \ref Data::mTimeout | * | #2:(U32) | \ref Data::mCountDown | * * \sa Data * *

Logging info

* | || * | || * | typeText | Datum | * | unitText | DG | * | infoText | DisinfectDGFlush | * */ class MDisinfectDGFlush : public MAbstract { // friends friend class ::tst_models; QVariantList parameters() const override; struct { Types::U32 mTimeout ; Types::U32 mCountdown ; } _data; public: Type_Enum typeText () const override { return Type_Enum::eDatum ; } Unit_Enum unitText () const override { return Unit_Enum::eDG ; } QString infoText () const override { return QString("DisinfectDGFlush"); } struct Data { quint32 mTimeout = 0; quint32 mCountdown = 0; }; MDisinfectDGFlush() {} bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override; Data data ( ) const ; }; } typedef Model::MDisinfectDGFlush::Data DisinfectDGFlushData;