Index: sources/gui/guicontroller.cpp =================================================================== diff -u -r90bcc276f2a879169fef20e9168711cf906c0e54 -rd2035a8728794afeefaa244bf8d1597926d945f5 --- sources/gui/guicontroller.cpp (.../guicontroller.cpp) (revision 90bcc276f2a879169fef20e9168711cf906c0e54) +++ sources/gui/guicontroller.cpp (.../guicontroller.cpp) (revision d2035a8728794afeefaa244bf8d1597926d945f5) @@ -1,15 +1,16 @@ /*! - * + * * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. - * \copyright \n - * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, \n - * IN PART OR IN WHOLE, \n - * WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. \n - * - * \file guicontroller.cpp - * \date 2019/09/30 - * \author Behrouz NematiPour - * + * \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) Peter Lucia + * \date (last) 25-Jun-2020 + * \author (original) Behrouz NematiPour + * \date (original) 24-Sep-2019 + * */ #include "guicontroller.h" @@ -81,6 +82,9 @@ connect(&_ApplicationController, SIGNAL(didExport()), this , SLOT( onExport())); + connect(&_ApplicationController, SIGNAL(didFailedTransmit(Sequence)), + this , SLOT(didFailedTransmit(Sequence))); + // ---- Signal/Slots ACTION_RECEIVE_MODEL_BRIDGE_CONNECTIONS(_ApplicationController) } @@ -277,3 +281,21 @@ emit didExportLog(); } // coco end + +/*! + * \brief GuiController::didFailedTransmit + * Raises an HD communiation timeout alarm if communication with HD is lost. + * \param seq - Sequence that failed to transmit + */ +void GuiController::didFailedTransmit(Sequence seq) +{ + Q_UNUSED(seq); + AlarmStatusData data; + data.mState = GuiAlarmPriority::ALARM_PRIORITY_HIGH; // Alarm priority + data.mTop = GuiAlarmID::ALARM_ID_HD_COMM_TIMEOUT; // Alarm ID + data.mMuteTimeout = 0; // Alarm timeout + data.mEscalatesIn = 0; // Alarm Escalate Time Period + data.mFlags = QBitArray(16, false); // 16 QBitArray of flags, if needed + emit didActionReceive(data); +} +