Index: sources/storage/Logger.h =================================================================== diff -u -r00d9bb06ec2bad14f6dc2db678b750c244f694ef -rc503f43840024e18650c1ac558448dd0f3b70427 --- sources/storage/Logger.h (.../Logger.h) (revision 00d9bb06ec2bad14f6dc2db678b750c244f694ef) +++ sources/storage/Logger.h (.../Logger.h) (revision c503f43840024e18650c1ac558448dd0f3b70427) @@ -5,7 +5,7 @@ * 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 logger.h + * \file Logger.h * \author (last) Behrouz NematiPour * \date (last) 04-Feb-2020 * \author (original) Behrouz NematiPour @@ -20,7 +20,7 @@ #include // Project -#include "main.h" +#include "main.h" // Doxygen : don't remove #include "StorageGlobals.h" @@ -57,6 +57,9 @@ { Q_OBJECT + // Singleton + SINGLETON(Logger) + // friends friend class ::tst_logging; @@ -120,8 +123,6 @@ QThread *_thread = nullptr; bool _init = false; -// Singleton -SINGLETON(Logger); public slots: bool init(); @@ -137,13 +138,13 @@ void quitThread(); private: -// ----- setting up + // ----- setting up void checkLogPath (); void setLogBasePath (bool vUseApplicationDirPath = false); bool setLogPath (); bool setLogPath (LogType vLogType); -// ----- Export structure + // ----- Export structure private : bool exportLogs(); public slots: // this slot is thread safe and can be called from outside by LOG_EXPORT. @@ -152,7 +153,7 @@ signals: void didExportLogs(); -// ----- Remove Old Logs structure + // ----- Remove Old Logs structure private: int removeLogs(); private slots: // this slot is thread safe and can be called from outside but preferred not to. @@ -161,12 +162,12 @@ signals: void didRemoveLogs(); -// ----- Available space is low + // ----- Available space is low private slots: void onSDCardSpaceChange(bool vReady, qint64 vTotal, qint64 vAvailable, quint8 vPercent); -// ----- logging structure + // ----- logging structure private slots: void onLog (const QString &vContent, LogType vLogType); private: