/*! * * 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 vtreatmentadjustmentsresponse.h * \date 3/29/2020 * \author Behrouz NematiPour * */ #pragma once // Qt #include // Project #include "mmodel.h" #include "vview.h" #include "guiglobals.h" // forward diclations class tst_views; // namespace using namespace Gui; namespace View { class VTreatmentAdjustmentsResponse : public QObject { Q_OBJECT // friends friend class ::tst_views; // coco begin validated: // The Reason property as quint32 is not used directly in GUI // it will be used as QString text. // has been manually tested that it works perfectly fine if used. PROPERTY( quint32 , adjustment_Reason , 0) // 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 , adjustmentFlow , 0) TRIGGER( bool , adjustmentDuration , 0) // coco end // Treatment Blood/Dialysate Flow data PROPERTY( bool , adjustment_Accepted , 0) PROPERTY( quint32 , bloodFlow_FlowSetPoint , 0) PROPERTY( quint32 , dialysateFlow_FlowSetPoint , 0) // Treatment Duration data PROPERTY( quint32 , duration , 0) PROPERTY( float , ultrafiltration , 0) VIEW_DEC_CLASS(VTreatmentAdjustmentsResponse) VIEW_DEC_SLOT_ADJUSTMENTS private: QString reasonText (GuiRequestReasons vEnum); public slots: QString text(); }; }