/*! * * 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 MDisinfectAdjustRequests.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 "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 MAdjustDisinfectReq 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 MAdjustDisinfectReq : public MModel { public: GuiDisinfectDGStates mState = GuiDisinfectDGStates::DG_DISINFECT_NOT_RUNNING_STATE; // coco begin validated : Has been validated manually. // This object is used statically for now, kept the logic for later usage. QString toString() { return toString({mState}); } // coco end static QString toString(const QVariantList &vParameters) { return MModel::toString("Disinfect", vParameters); } }; /*! * \brief The MAdjustDisinfectChemicalConfirmReq class * \details The model to Confirm Disposables Removal * * | MSG | CAN ID | Type | Ack | Src | Dest | Description | * |:----:|:------:|:----:|:---:|:---:|:----:|:-----------:| * |0x8100| 0x100 | Req | Y | UI | HD | Chemical Disinfection User Confirm Request | * * | Payload || * | || * | None || * */ class MAdjustDisinfectChemicalConfirmReq : public MModel { public: // coco begin validated : Has been validated manually. // This object is used statically for now, kept the logic for later usage. QString toString() { return toString({}); } // coco end static QString toString(const QVariantList &vParameters) { return MModel::toString("DisinfectChemicalConfirm", vParameters); } }; } typedef Model:: MAdjustDisinfectReq AdjustDisinfectRequestData; typedef Model:: MAdjustDisinfectChemicalConfirmReq AdjustChemicalConfirmRequestData;