Index: sources/storage/logger.h =================================================================== diff -u -r3aab84456cfbdc4c4f495975ba9b8968eb844309 -r920342d3f8cb8c29966f2354ebc7d241df23ccf7 --- sources/storage/logger.h (.../logger.h) (revision 3aab84456cfbdc4c4f495975ba9b8968eb844309) +++ sources/storage/logger.h (.../logger.h) (revision 920342d3f8cb8c29966f2354ebc7d241df23ccf7) @@ -26,7 +26,7 @@ // Define #define _Logger Storage::Logger::I() -#define LOG_EXPORT _Logger.concurrentExport() +#define LOG_EXPORT _Logger.concurrentExportLogs() #define LOG_DEBUG(vCONTENT) emit Storage::Logger::I().didLog(vCONTENT, Storage::Logger::LogType::eLogDebug) @@ -107,8 +107,8 @@ QString _logFileName = ""; - QFutureWatcher _exportWatcher; - QFutureWatcher _removeOldLogsWatcher; + QFutureWatcher _exportLogsWatcher; + QFutureWatcher _removeLogsWatcher; QThread *_thread = nullptr; bool _init = false; @@ -137,25 +137,24 @@ bool setLogPath (LogType vLogType); // ----- Export structure -public slots: - bool concurrentExport(); -private slots: - void onExport(); +private : + bool exportLogs(); +public slots: // this slot is thread safe and can be called from outside by LOG_EXPORT. + bool concurrentExportLogs(); + void onExportLogs(); signals: - /*! - * \brief didExport - * \details notifies the UI when the export is done. - */ - void didExport(); + void didExportLogs(); // ----- Remove Old Logs structure private: - int removeOldLogs(); -private slots: - bool concurrentRemoveOldLogs(); - void onRemoveOldLogs(); + int removeLogs(); +private slots: // this slot is thread safe and can be called from outside but preffered not to. + bool concurrentRemoveLogs(); + void onRemoveLogs(); signals: - void didRemoveOldLogs(); + void didRemoveLogs(); + +// ----- Available space is low private slots: void onSDCardSpaceChange(bool vReady, qint64 vTotal, qint64 vAvailable, quint8 vPercent);