Index: sources/storage/filehandler.h =================================================================== diff -u -r31b9ae63410e7ca23f0f849e38368880e4c402b4 -r56e378f7504701b9e9a9dccaf205aef2fd52c58e --- sources/storage/filehandler.h (.../filehandler.h) (revision 31b9ae63410e7ca23f0f849e38368880e4c402b4) +++ sources/storage/filehandler.h (.../filehandler.h) (revision 56e378f7504701b9e9a9dccaf205aef2fd52c58e) @@ -1,20 +1,22 @@ /*! * * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. - * \copyright \n - * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, \n - * IN PART OR IN WHOLE, \n - * WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. \n + * \copyright + * 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 filehandler.h - * \date 2019/09/30 - * \author Behrouz NematiPour + * \file filehandler.h + * \author (last) Behrouz NematiPour + * \date (last) 25-Aug-2020 + * \author (original) Behrouz NematiPour + * \date (original) 24-Sep-2019 * */ #pragma once // Qt #include +class QDate; namespace Storage { @@ -33,7 +35,9 @@ static bool write(const QString &vFileName, const QString &vContent, bool vAppend = true); static bool read (const QString &vFileName, QString &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); }; - }