/*! * * 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 VTreatmentAdjustmentRinseback.cpp * \author (last) Behrouz NematiPour * \date (last) 11-Apr-2021 * \author (original) Behrouz NematiPour * \date (original) 11-Apr-2021 * */ #include "VTreatmentAdjustmentRinseback.h" // Project #include "GuiController.h" VIEW_DEF_CLASS_ADJUSTMENT(VTreatmentAdjustmentRinseback) void VTreatmentAdjustmentRinseback::initConnections() { ACTION_VIEW_CONNECTION(AdjustRinsebackResponseData); ADJUST_VIEW_CONNECTION(AdjustRinsebackRequestData ); } void VTreatmentAdjustmentRinseback::onActionReceive(const AdjustRinsebackResponseData &vData) { adjustment_Accepted ( vData.mAccepted ); adjustment_Reason ( vData.mReason ); // *** has to be the last to let the information to be set and then emit the signal *** // *** otherwise will use the previous values before being set. *** adjustment ( true ); } /*! * \brief View::VTreatmentAdjustmentRinseback::adjustment * \details the invocable slot to adjust the rinseback state * \param vRequestedState - the requested state */ void View::VTreatmentAdjustmentRinseback::adjustment(const GuiRinsebackCommands &vRequestedState) { _data.requestedState = vRequestedState; emit didAdjustment(_data); // notify the controllers to do the adjustment }