/*! * * Copyright (c) 2022-2024 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 MDisinfectAdjustStartRequests.h * \author (last) Behrouz NematiPour * \date (last) 16-Aug-2022 * \author (original) Behrouz NematiPour * \date (original) 16-Aug-2022 * */ #pragma once // Qt #include //project #include "MAdjustRequestsBase.h" #include "GuiGlobals.h" #include "MessageGlobals.h" using namespace Gui; namespace Model { /*! * Simple request models * These are models to send the request for the doAdjustment * The the only reason thy have been defined to help overloading the adjustment methods * Otherwise the parameters are so tiny models. */ /*! * \brief The MAdjustDisinfectStartReq class * \details The model to request heat/chemical disinfect * * | MSG | CAN ID | Type | Ack | Src | Dest | Description | * |:----:|:------:|:----:|:---:|:---:|:----:|:-----------:| * |0x7F00| 0x100 | Req | Y | UI | HD | Flush, Heat/Chemical Disinfect Request | * * | Payload || * | || * | #1:(U32) | \ref mState | * */ class MAdjustDisinfectStartReq : public MModel { public: GuiDisinfectDGStates mState = GuiDisinfectDGStates::DD_DISINFECT_NOT_RUNNING_STATE; QString toString() { return toString({mState}); } static QString toString(const QVariantList &vParameters) { return MModel::toString("DisinfectStart", vParameters); } }; } typedef Model::MAdjustDisinfectStartReq AdjustDisinfectStartRequestData;