/*! * * 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 MTreatmentAdjustUltrafiltrationStateResponse.h * \date 5/20/2020 * \author Behrouz NematiPour * */ #pragma once // Qt #include // Project #include "MAbstract.h" #include "types.h" // forward declarations class tst_models; namespace Model { class MAdjustUltrafiltrationStateResponse : public MAbstract { // friends friend class ::tst_models; QVariantList parameters() const override; struct { Types::U08 mAccepted ; // IMPORTANT : This is a response to AcknowGeneric which has a data of 1 byte for the accepted/rejected. } _data; public: // coco begin validated : manually validated. // this message has been inherited from MAbstract and should use notify but since the response message is not standard can't use notify yet. Type_Enum typeText () const override { return Type_Enum::eEvent ; } // coco end Unit_Enum unitText () const override { return Unit_Enum::eHD ; } QString infoText () const override { return QString("AdjustUFState"); } struct Data { bool mAccepted = 0; /*!< Accepted value of type quint32 extracted out */ }; MAdjustUltrafiltrationStateResponse() { } bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override; Data data ( ) const ; }; } typedef Model::MAdjustUltrafiltrationStateResponse::Data AdjustUltrafiltrationStateResponseData;