DtkCore
DTK Core module
Dtk::Core::DStandardPaths类 参考

DStandardPaths提供兼容Snap/Dtk标准的路径模式。DStandardPaths实现了Qt的QStandardPaths主要接口. 更多...

Public 类型

enum  Mode { Auto , Snap , Test }
 
enum class  XDG { DataHome , ConfigHome , CacheHome , RuntimeTime }
 
enum class  DSG { AppData , DataDir }
 

静态 Public 成员函数

static QString writableLocation (QStandardPaths::StandardLocation type)
 
static QStringList standardLocations (QStandardPaths::StandardLocation type)
 
static QString locate (QStandardPaths::StandardLocation type, const QString &fileName, QStandardPaths::LocateOptions options=QStandardPaths::LocateFile)
 
static QStringList locateAll (QStandardPaths::StandardLocation type, const QString &fileName, QStandardPaths::LocateOptions options=QStandardPaths::LocateFile)
 
static QString findExecutable (const QString &executableName, const QStringList &paths=QStringList())
 
static void setMode (Mode mode)
 
static QString homePath ()
 
static QString homePath (const uint uid)
 
static QString path (XDG type)
 
static QString path (DSG type)
 
static QStringList paths (DSG type)
 
static QString filePath (XDG type, QString fileName)
 
static QString filePath (DSG type, QString fileName)
 

详细描述

DStandardPaths提供兼容Snap/Dtk标准的路径模式。DStandardPaths实现了Qt的QStandardPaths主要接口.

\inmodule dtkcore

参见
QStandardPaths

该类的文档由以下文件生成: