/*! * * 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 VTreatmentAdjustmentUltrafiltrationState.h * \author (last) Behrouz NematiPour * \date (last) 07-Sep-2020 * \author (original) Behrouz NematiPour * \date (original) 26-Aug-2020 * */ #pragma once #include // Project #include "main.h" // Doxygen : don't remove #include "VView.h" #include "VTreatmentAdjustmentResponseBase.h" namespace View { /*! * \brief The VTreatmentAdjustmentUltrafiltrationState class * \details View for Model's Data representation. * * \sa Model::MAdjustUltrafiltrationStateResponse * */ class VTreatmentAdjustmentUltrafiltrationState : public VTreatmentAdjustmentResponseBase { Q_OBJECT // friends friend class ::tst_views; AdjustUltrafiltrationStateRequestData _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 // coco begin validated: Manually tested // This property should not be used in QML since it need exposed enum // exposed enum usage in QML is not suggested since QML will not error out on any issue // kept for consistency and debugging use cases // Look at the VHDTreatmentStates ultrafiltration properties PROPERTY( qint32 , state , 0) // coco end VIEW_DEC_CLASS_ADJUSTMENT(VTreatmentAdjustmentUltrafiltrationState, AdjustUltrafiltrationStateResponseData) // ---------- Pause Ultrafiltration public slots: void doPause (); void doResume(); signals: void didAdjustment(const AdjustUltrafiltrationStateRequestData &vData); }; }