/*! * * 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 VTreatmentAdjustmentSaline.h * \author Behrouz NematiPour (last) * \date 10-Aug-2020 (last) * \author Behrouz NematiPour (original) * \date 10-Aug-2020 (original) * */ #pragma once #include // Project #include "main.h" // Doxygen : don't remove #include "VTreatmentAdjustmentResponseBase.h" namespace View { /*! * \brief The VTreatmentAdjustmentSaline class * \details View for Model's Data representation. * * \sa Model::MAdjustSalineResponse * */ class VTreatmentAdjustmentSaline : public VTreatmentAdjustmentResponseBase { Q_OBJECT // friends friend class ::tst_views; AdjustSalineRequestData _data; // coco begin validated: // The property adjustment_Triggered has to be always true // and to always trigger the change event to work as a notifier for GUI // has been manually tested that it works perfectly fine TRIGGER( bool , adjustment , 0 ) // coco end PROPERTY( qint32 , target , 0 ) PROPERTY( bool , isStarted , false ) PROPERTY( bool , isDisabled , false ) // the Saline is disabled due to maximum cumulative volume reached. VIEW_DEC_CLASS_ADJUSTMENT(VTreatmentAdjustmentSaline, AdjustSalineResponseData) VIEW_DEC_SLOT(TreatmentStatesData) // ---------- Start/Stop Saline Bolus public slots: void doAdjustment(); signals: /*! * \brief didAdjustment * \details the notification signal to adjust the saline bolus state * \param vData - data model for the duration adjustment request */ void didAdjustment(const AdjustSalineRequestData &vData); }; }