Index: sources/storage/FileHandler.h =================================================================== diff -u -r6d737ae2d5b3fa356c61fe92d56df23af308c8e0 -r1f5b2250ae70d305654d014a9aa1fd8baa29779c --- sources/storage/FileHandler.h (.../FileHandler.h) (revision 6d737ae2d5b3fa356c61fe92d56df23af308c8e0) +++ sources/storage/FileHandler.h (.../FileHandler.h) (revision 1f5b2250ae70d305654d014a9aa1fd8baa29779c) @@ -6,8 +6,8 @@ * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file FileHandler.h - * \author (last) Behrouz NematiPour - * \date (last) 22-Jan-2023 + * \author (last) Vy + * \date (last) 26-Apr-2023 * \author (original) Behrouz NematiPour * \date (original) 26-Aug-2020 * @@ -38,7 +38,6 @@ */ class FileHandler { - static void errOut(const QString &vMessage); public: enum FileCopyError_Enums { @@ -58,6 +57,8 @@ }; public: + static void errOut (const QString &vMessage); + static bool write (const QString &vFileName, const QString &vContent, bool vAppend = true ); static bool read (const QString &vFileName, QString &vContent, bool vAppend = false); static bool read (const QString &vFileName, QJsonObject &vContent, QJsonParseError *error = nullptr); @@ -69,6 +70,7 @@ static bool makeFolder (const QString &vFolder); static bool isMounted (const QString &vPath, bool *vIsReadOnly = nullptr); + static bool tmpUsable (); static QFileInfoList find(const QString &vPath, QStringList vNameFilters, quint8 vRetainPercent); static QFileInfoList find(const QString &vPath, QStringList vNameFilters);