18#ifndef DTK_CORE_FILESYSTEM_DSTANDARDPATHS_H
19#define DTK_CORE_FILESYSTEM_DSTANDARDPATHS_H
21#include <QStandardPaths>
23#include "dtkcore_global.h"
27class DStandardPathsPrivate;
37 static QString writableLocation(QStandardPaths::StandardLocation type);
38 static QStringList standardLocations(QStandardPaths::StandardLocation type);
40 static QString locate(QStandardPaths::StandardLocation type,
const QString &fileName, QStandardPaths::LocateOptions options = QStandardPaths::LocateFile);
41 static QStringList locateAll(QStandardPaths::StandardLocation type,
const QString &fileName, QStandardPaths::LocateOptions options = QStandardPaths::LocateFile);
42 static QString findExecutable(
const QString &executableName,
const QStringList &paths = QStringList());
43 static void setMode(Mode mode);
57 static QString homePath();
58 static QString homePath(
const uint uid);
59 static QString path(XDG type);
60 static QString path(DSG type);
61 static QStringList paths(DSG type);
62 static QString filePath(XDG type, QString fileName);
63 static QString filePath(DSG type, QString fileName);
DStandardPaths提供兼容Snap/Dtk标准的路径模式。DStandardPaths实现了Qt的QStandardPaths主要接口.
Definition: dstandardpaths.h:29