Index: sources/gui/guicontroller.cpp =================================================================== diff -u -rd1907168ef46faa6de1ada400cad789f8379041f -r846a9ebc350e33be4affab3cc4c136248900015d --- sources/gui/guicontroller.cpp (.../guicontroller.cpp) (revision d1907168ef46faa6de1ada400cad789f8379041f) +++ sources/gui/guicontroller.cpp (.../guicontroller.cpp) (revision 846a9ebc350e33be4affab3cc4c136248900015d) @@ -6,8 +6,8 @@ * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file guicontroller.cpp - * \author (last) Peter Lucia - * \date (last) 25-Jun-2020 + * \author (last) Behrouz NematiPour + * \date (last) 25-Aug-2020 * \author (original) Behrouz NematiPour * \date (original) 24-Sep-2019 * @@ -74,16 +74,23 @@ // From OS : USB Drive has been removed physically. + // USB drive connect(&_ApplicationController, SIGNAL(didUSBDriveMount ()), this , SLOT( onUSBDriveMount ())); connect(&_ApplicationController, SIGNAL(didUSBDriveRemove()), this , SLOT( onUSBDriveRemove())); + // SD card + connect(&_ApplicationController, SIGNAL(didSDCardStateChange(bool,bool)), + this , SLOT( onSDCardStateChange(bool,bool))); + + // Export connect(&_ApplicationController, SIGNAL(didExport()), this , SLOT( onExport())); + // transmission fail connect(&_ApplicationController, SIGNAL(didFailedTransmit(Sequence)), - this , SLOT(didFailedTransmit(Sequence))); + this , SLOT( onFailedTransmit(Sequence))); // ---- Signal/Slots ACTION_RECEIVE_MODEL_BRIDGE_CONNECTIONS(_ApplicationController) @@ -257,6 +264,21 @@ // coco end /*! + * \brief GuiController::onSDCardStateChange + * \details emits didSDCardStateChange signal to notify other classes (GuiView) + * , the SD Card state has been changed. + * \param vIsReady - SdCard is Ready + * \param vIsReadOnly - SdCard is ReadOnly + */ +void GuiController::onSDCardStateChange(bool vIsReady, bool vIsReadOnly) +{ + // coco begin validated: This needs user interaction to plug-out the SD Card + // has been tested manually + emit didSDCardStateChange(vIsReady, vIsReadOnly); +} +// coco end + +/*! * \brief GuiController::onExport * \details The slot which will be called to notify the export is done * by emitting the didExport signal. @@ -284,10 +306,10 @@ /*! * \brief GuiController::didFailedTransmit - * Raises an HD communiation timeout alarm if communication with HD is lost. + * Raises an HD communication timeout alarm if communication with HD is lost. * \param seq - Sequence that failed to transmit */ -void GuiController::didFailedTransmit(Sequence seq) +void GuiController::onFailedTransmit(Sequence seq) { Q_UNUSED(seq); AlarmStatusData data;