/*! * * Copyright (c) 2021-2022 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 VConfirmDialog.cpp * \author (last) Behrouz NematiPour * \date (last) 22-Sep-2022 * \author (original) Behrouz NematiPour * \date (original) 22-Sep-2022 * */ #include "VConfirmDialog.h" // Project #include "GuiController.h" VIEW_DEF_CLASS_ADJUSTMENT(VConfirmDialog) /*! * \brief Connection Initializer * \details All the class signal/slot connections are defined here. */ void View::VConfirmDialog::initConnections() { ACTION_VIEW_CONNECTION(DuetConfirmHDiData); } /*! * \brief VConfirmDialog::onActionReceive * \details received response model data handler * \param vData - model data */ void View::VConfirmDialog::onActionReceive(const DuetConfirmHDiData &vData) { id ( vData.mId ); command ( vData.mCommand ); 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 ); // DEBUG: qDebug() << _id << _command << _reason; }