/*! * \brief Class that holds a table of the UpdatableFile instances currently in use. * * \copyright Copyright (c) 2017-2019 Governikus GmbH & Co. KG, Germany */ #pragma once #include "Env.h" #include "UpdatableFile.h" #include #include #include namespace governikus { class FileProvider { Q_GADGET friend class Env; private: QHash > mUpdatableFiles; QMutex mGetFileMutex; protected: FileProvider(); ~FileProvider() = default; static FileProvider& getInstance(); public: const QSharedPointer getFile(const QString& pSection, const QString& pName, const QString& pDefaultPath = QString()); }; } // namespace governikus