/*! * * Copyright (c) 2021-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 MPostTreatmentAdjustRequests.h * \author (last) Behrouz NematiPour * \date (last) 11-Aug-2023 * \author (original) Behrouz NematiPour * \date (original) 11-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 MAdjustPatientDisconnectionNotifyReq class * \details The model to Confirm Patient Disconnection * * | MSG | CAN ID | M.Box | Type | Ack | Src | Dest | Description | * |:----:|:------:|:-----:|:----:|:---:|:---:|:----:|:-----------:| * |0x4A00| 0x100 | 9 | Req | Y | UI | HD | Patient Disconnection Notify Request | * * | Payload || * | || * | None || * */ class MAdjustPatientDisconnectionNotifyReq : public MModel { public: static QString toString(const QVariantList &vParameters) { return MModel::toString("PatientDisconnectionNotify", vParameters); } }; /*! * \brief The MAdjustPatientDisconnectionConfirmReq class * \details The model to Confirm Patient Disconnection * * | MSG | CAN ID | Type | Ack | Src | Dest | Description | * |:----:|:------:|:----:|:---:|:---:|:----:|:-----------:| * |0x0600| 0x100 | Req | Y | UI | HD | Patient Disconnection Confirm Request | * * | Payload || * | || * | None || * */ class MAdjustPatientDisconnectionConfirmReq : public MModel { public: static QString toString(const QVariantList &vParameters) { return MModel::toString("PatientDisconnectionConfirm", vParameters); } }; /*! * \brief The MAdjustDisposablesRemovalConfirmReq class * \details The model to Confirm Disposables Removal * * | MSG | CAN ID | M.Box | Type | Ack | Src | Dest | Description | * |:----:|:------:|:-----:|:----:|:---:|:---:|:----:|:-----------:| * |0x7300| 0x100 | 9 | Req | Y | UI | HD | Disposables Removal Confirm Request | * * | Payload || * | || * | None || * */ class MAdjustDisposablesRemovalConfirmReq : public MModel { public: static QString toString(const QVariantList &vParameters) { return MModel::toString("DisposablesRemovalConfirm", vParameters); } }; /*! * \brief The MAdjustTreatmentLogReq class * \details The model to request Treatment Log * * | MSG | CAN ID | M.Box | Type | Ack | Src | Dest | Description | * |:----:|:------:|:-----:|:----:|:---:|:---:|:----:|:-----------:| * |0x7500| 0x100 | 9 | Req | Y | UI | HD | Treatment Log Request | * * | Payload || * | || * | None || * */ class MAdjustTreatmentLogReq : public MModel { public: static QString toString(const QVariantList &vParameters) { return MModel::toString("TreatmentLog", vParameters); } }; } typedef Model:: MAdjustPatientDisconnectionNotifyReq AdjustPatientDisconnectionNotifyRequestData; typedef Model:: MAdjustPatientDisconnectionConfirmReq AdjustPatientDisconnectionConfirmRequestData; typedef Model:: MAdjustDisposablesRemovalConfirmReq AdjustDisposablesRemovalConfirmRequestData; typedef Model:: MAdjustTreatmentLogReq AdjustTreatmentLogRequestData;