/*! * * 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 VDGPOSTData.cpp * \author (last) Behrouz NematiPour * \author (original) Behrouz NematiPour * \date (last) 27-Jul-2021 * \date (original) 27-Jul-2021 * */ #include "VDGPOSTData.h" // Project #include "GuiController.h" VIEW_DEF_CLASS_ADJUSTMENT(VDGPOSTData) /*! \brief Connection Initializer \details All the class signal/slot connections are defined here. */ void View::VDGPOSTData::initConnections() { ACTION_VIEW_CONNECTION(DGPostSingleResultData); ACTION_VIEW_CONNECTION(DGPostFinalResultData ); } /*! * \brief VDGPOSTData::onActionReceive * \details received response model data handler * \param vData - model data */ void View::VDGPOSTData::onActionReceive(const DGPostSingleResultData &vData) { itemIndex ( vData.mIndex ); itemResult ( vData.mResult ); start ( true ); // *** 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 VDGPOSTData::onActionReceive * \details received response model data handler * \param vData - model data */ void View::VDGPOSTData::onActionReceive(const DGPostFinalResultData &vData) { doneResult ( vData.mResult ); done ( true ); // *** 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 ); }