Index: sources/storage/filehandler.h =================================================================== diff -u -rc71deaab48699cffdf9db816dfac2778d79c2238 -rf8321d4b6a5489f797122321a4821b4eeaaa50cb --- sources/storage/filehandler.h (.../filehandler.h) (revision c71deaab48699cffdf9db816dfac2778d79c2238) +++ sources/storage/filehandler.h (.../filehandler.h) (revision f8321d4b6a5489f797122321a4821b4eeaaa50cb) @@ -7,7 +7,7 @@ * * \file filehandler.h * \author (last) Behrouz NematiPour - * \date (last) 02-Apr-2020 + * \date (last) 25-Aug-2020 * \author (original) Behrouz NematiPour * \date (original) 24-Sep-2019 * @@ -16,9 +16,9 @@ // Qt #include -#include #include #include +class QDate; namespace Storage { @@ -34,12 +34,13 @@ static void errOut(const QString &vMessage); public: - static bool write(const QString &vFileName, const QString &vContent, bool vAppend = true); - static bool read (const QString &vFileName, QString &vContent); - static bool readCSV(const QString &vFileName, QString &vContent); - static bool readJSON(const QString &vFileName, QJsonObject &vContent); + static bool write (const QString &vFileName, const QString &vContent, bool vAppend = true); + static bool read (const QString &vFileName, QString &vContent); + static bool readJSON (const QString &vFileName, QJsonObject &vContent); - static int copyFolder(const QString &vSource, const QString &vDestination); + static int copyFolder (const QString &vSource, const QString &vDestination); + static int removeFiles(const QStringList &vFolders, const QStringList &vNameFilter, const QDate &vDateOlderThan); + static bool makeFolder (const QString &vFolder); + static bool isMounted (const QString &vPath, bool *vIsReadOnly = nullptr); }; - }