Index: sources/applicationcontroller.cpp =================================================================== diff -u -r862dc0590b73c618fac73dce2c976e3526e0404a -rb9c5b0b3afc3b34d4980ecc4f023f498f80dafbc --- sources/applicationcontroller.cpp (.../applicationcontroller.cpp) (revision 862dc0590b73c618fac73dce2c976e3526e0404a) +++ sources/applicationcontroller.cpp (.../applicationcontroller.cpp) (revision b9c5b0b3afc3b34d4980ecc4f023f498f80dafbc) @@ -102,6 +102,9 @@ connect(&_GuiController , SIGNAL(didExportLog()), this , SLOT( onExportLog())); + + connect(&_Logger , SIGNAL(didExport()), + this , SLOT( onExport())); } /*! @@ -203,14 +206,19 @@ */ void ApplicationController::onExportLog() { - Storage::FileHandler fh; - fh.concurrentExportLog(); - //TODO : it needs to change in a way that we can have an actual export finish time and then emit signal. - // this is not accurate. - emit didExportLog(); + _Logger.concurrentExport(); } /*! + * \brief ApplicationController::onExport + * \details the slot which will be called by logger is done exporting. + */ +void ApplicationController::onExport() +{ + emit didExport(); +} + +/*! * \brief ApplicationController::keepAlive * \details This is the message which has to be send over the CANBUS * as an monitor for other nodes on the bus to notify UI is alive