/*! * * 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 VTreatmentAdjustmentEnd.h * \author (last) Behrouz NematiPour * \date (last) 10-Feb-2021 * \author (original) Behrouz NematiPour * \date (original) 10-Feb-2021 * */ #pragma once #include // Project #include "main.h" // Doxygen : don't remove #include "VTreatmentAdjustmentResponseBase.h" #include "MTreatmentAdjustEndResponse.h" namespace View { /*! * \brief The VTreatmentAdjustmentEnd class * \details View for Model's Data representation. * * \sa Model::MAdjustTreatmentEndResponse * */ class VTreatmentAdjustmentEnd : public VTreatmentAdjustmentResponseBase { Q_OBJECT // friends friend class ::tst_views; AdjustTreatmentEndRequestData _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 VIEW_DEC_CLASS_ADJUSTMENT(VTreatmentAdjustmentEnd, AdjustTreatmentEndResponseData) private: void adjustment (const GuiTreatmentEndCommands &vRequestedState); public slots: void doEnd () { adjustment( GuiTreatmentEndCommands::REQUESTED_USER_ACTION_TX_END_RINSEBACK_START ); } signals: /*! * \brief didAdjustment * \details the notification signal to adjust the Treatment End state * \param vData - data model for the duration adjustment request */ void didAdjustment(const AdjustTreatmentEndRequestData &vData); }; }