Index: sources/gui/GuiController.cpp =================================================================== diff -u -rc73feffa73c7fe073a7a7581144f5806dfc91beb -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 --- sources/gui/GuiController.cpp (.../GuiController.cpp) (revision c73feffa73c7fe073a7a7581144f5806dfc91beb) +++ sources/gui/GuiController.cpp (.../GuiController.cpp) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) @@ -1,13 +1,13 @@ /*! * - * Copyright (c) 2020-2023 Diality Inc. - All Rights Reserved. + * Copyright (c) 2020-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 GuiController.cpp * \author (last) Behrouz NematiPour - * \date (last) 10-Feb-2023 + * \date (last) 08-Aug-2023 * \author (original) Behrouz NematiPour * \date (original) 26-Aug-2020 * @@ -22,7 +22,7 @@ #include "Logger.h" #include "ApplicationController.h" #include "AlarmGenerator.h" - +#include "MessageAcknowModel.h" // namespace using namespace Gui; @@ -365,10 +365,11 @@ * \details Raises an HD communication timeout alarm if communication with HD is lost. * \param seq - Sequence that failed to transmit */ -void GuiController::onFailedTransmit(Sequence seq) +void GuiController::onFailedTransmit(Sequence) { - Q_UNUSED(seq); AlarmStatusData data = AlarmGenerator::ALARM_ID_HD_COMM_TIMEOUT(); + LOG_APPED_MSG(GuiActions::ID_AlarmStatus, AlarmGenerator::toString()); + //DEBUG qDebug() << " A" << _MessageAcknowModel.count(); emit didActionReceive(data); } @@ -381,3 +382,21 @@ { emit didPOSTPass(vPass); } + +/*! + * \brief GuiController::doQuitApplication + * \details emit the didQuitApplication signal to ask ApplicationController to Quit the application gracefully. + */ +void GuiController::doQuitApplication() +{ + emit didQuitApplication(); +} + +/*! + * \brief GuiController::doTreatmentRangesDone + * \details emit the didTreatmentRangesDone signal to ask ApplicationController to emit alarm that settings are bad + */ +void GuiController::doTreatmentRangesDone(bool vPass) +{ + emit didTreatmentRangesDone(vPass); +}