/*! * * 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 VTreatmentAdjustmentRecirculate.h * \author (last) Behrouz NematiPour * \date (last) 23-Apr-2023 * \author (original) Behrouz NematiPour * \date (original) 11-Apr-2021 * */ #pragma once #include // Project #include "main.h" // Doxygen : do not remove #include "VAdjustmentResponseBase.h" #include "MTreatmentAdjustRecirculateResponse.h" namespace View { /*! * \brief The VTreatmentAdjustmentRecirculate class * \details View for Model's Data representation. * * \sa Model::MAdjustRecirculateResponse * */ class VTreatmentAdjustmentRecirculate : public VAdjustmentResponseBase { Q_OBJECT // friends friend class ::tst_views; AdjustRecirculateRequestData _data; // The property adjustment_Triggered has to be always true // and to always trigger the change event to work as a notifier for GUI TRIGGER( bool , adjustment , 0 ) VIEW_DEC_CLASS_ADJUSTMENT(VTreatmentAdjustmentRecirculate, AdjustRecirculateResponseData) // ---------- Start/Stop Recirculate Bolus private slots: void doAdjustment(const GuiRecirculateCommands &vRequestedState); public slots: void doReconnect (); // REQUESTED_USER_ACTION_TX_RECIRC_RECONNECT = 0, ///< User requests to re-connect to system (stop re-circulating, clamp arterial and venous lines) void doConfirmReconnect (); // REQUESTED_USER_ACTION_TX_RECIRC_CONFIRM_RECONNECT = 1, ///< User confirms patient connected, lines un-shunted to return to treatment void doResume (); // REQUESTED_USER_ACTION_TX_RECIRC_RESUME_RC = 2, ///< User requests to resume re-circulation void doTreatmentEnd (); // REQUESTED_USER_ACTION_TX_RECIRC_END_TREATMENT = 3, ///< User requests to end treatment void doConfirmDisconnect(); // REQUESTED_USER_ACTION_TX_RECIRC_CONFIRM_DISCONNECT = 4, ///< User confirms patient disconnected, lines shunted to begin re-circulation signals: /*! * \brief didAdjustment * \details the notification signal to adjust the Recirculate bolus state * \param vData - data model for the duration adjustment request */ void didAdjustment(const AdjustRecirculateRequestData &vData); }; }