Index: sources/storage/FileHandler.h =================================================================== diff -u -r84c5373209a1a488c00917995f5553d442d159a4 -r9d8a60eb984003d3f7814cbe507b1b37f519bc80 --- sources/storage/FileHandler.h (.../FileHandler.h) (revision 84c5373209a1a488c00917995f5553d442d159a4) +++ sources/storage/FileHandler.h (.../FileHandler.h) (revision 9d8a60eb984003d3f7814cbe507b1b37f519bc80) @@ -6,16 +6,18 @@ * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file FileHandler.h - * \author (last) Behrouz NematiPour - * \date (last) 25-Aug-2020 + * \author (last) Peter Lucia + * \date (last) 15-Oct-2020 * \author (original) Behrouz NematiPour - * \date (original) 24-Sep-2019 + * \date (original) 26-Aug-2020 * */ #pragma once // Qt #include +#include +#include class QDate; namespace Storage { @@ -32,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 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); + static bool makeFolder (const QString &vFolder); + static bool isMounted (const QString &vPath, bool *vIsReadOnly = nullptr); }; }