Index: sources/storage/Logger.cpp =================================================================== diff -u -rc503f43840024e18650c1ac558448dd0f3b70427 -rbb74da05f81b82dad3ec844c1feb1135b949f1c2 --- sources/storage/Logger.cpp (.../Logger.cpp) (revision c503f43840024e18650c1ac558448dd0f3b70427) +++ sources/storage/Logger.cpp (.../Logger.cpp) (revision bb74da05f81b82dad3ec844c1feb1135b949f1c2) @@ -279,7 +279,12 @@ } } - +/*! + * \brief Logger::exportLogs + * \details Exports the log files from log folder (Storage::Log_Base_Path_Name_Location) + * into USB drive folder (Storage::USB_Mount_Point) + * \return true if at least one file has been exported + */ bool Logger::exportLogs() { // coco begin validated: This needs user interaction to check the old files deleted @@ -302,8 +307,7 @@ /*! * \brief Logger::concurrentExportLogs - * \details Exports the log files from log folder (Storage::Log_Base_Path_Name_Location) - * into USB drive folder (Storage::USB_Mount_Point) + * \details Export logs scheduler. * \return always returns true for now. * \note This method uses QtConcurrent run to execute the FileHandler copyFolder method. */ @@ -318,6 +322,10 @@ } // coco end +/*! + * \brief Logger::onExportLogs + * \details Export log notification slot which logs result of export. + */ void Logger::onExportLogs() { // coco begin validated: This needs user interaction to export to USB device @@ -363,8 +371,7 @@ /*! * \brief Logger::concurrentRemoveLogs - * \details - * + * \details remove logs scheduler. * \return always returns true for now. * \note This method uses QtConcurrent run to execute the FileHandler copyFolder method. */ @@ -379,16 +386,34 @@ } // coco end +/*! + * \brief Logger::onRemoveLogs + * \details Remove old logs notification slot which logs result of remove. + */ void Logger::onRemoveLogs() { // coco begin validated: This needs user interaction to export to USB device // has been tested manually LOG_DEBUG(QString("Remove Logs Ended: %1").arg(_removeLogsWatcher.result())); emit didRemoveLogs(); } +// coco end +/*! + * \brief Logger::onSDCardSpaceChange + * \details SD Card storage space parameter change slot. + * This slot when called is calling the function concurrentRemoveLogs, + * if percent of available space vPercent is less than _availableSpacePercent, + * if the SD Card is ready (vReady is true) + * \param vReady - The SD Card is Ready + * \param vTotal - Total storage space on the SD Card + * \param vAvailable - Available storage space on the SD Card + * \param vPercent - Percent of available storage space on the SD Card + */ void Logger::onSDCardSpaceChange(bool vReady, qint64 vTotal, qint64 vAvailable, quint8 vPercent) { + // coco begin validated: This needs user interaction to change the SD card files system. + // has been tested manually Q_UNUSED(vTotal ) Q_UNUSED(vAvailable ) if ( ! vReady ) return;