Warning, file /education/kstars/kstars/auxiliary/kspaths.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2016 Artem Fedoskin <afedoskin3@gmail.com> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef KSPATHS_H_ 0007 #define KSPATHS_H_ 0008 #include <QStandardPaths> 0009 #include <QDir> 0010 0011 /** 0012 *@class KSPaths 0013 *@short Wrapper for QStandardPaths with Android assets support 0014 *The purpose of this class is to search for resources on some platforms with paths that are not 0015 *provided by QStandardPaths (e.g. assets:/ on Android). 0016 *@author Artem Fedoskin, Jasem Mutlaq 0017 *@version 1.0 0018 */ 0019 0020 class KSPaths 0021 { 0022 public: 0023 static QString locate(QStandardPaths::StandardLocation location, const QString &fileName, 0024 QStandardPaths::LocateOptions options = QStandardPaths::LocateFile); 0025 static QStringList locateAll(QStandardPaths::StandardLocation, const QString &fileNames, 0026 QStandardPaths::LocateOptions options = QStandardPaths::LocateFile); 0027 static QString writableLocation(QStandardPaths::StandardLocation type); 0028 }; 0029 #endif