33 #include <QStringList> 166 const std::function<
bool (QFileInfo)>& filter = std::function<
bool (QFileInfo)> ());
SysPath
Describes various root paths recognized by GetSysPath().
SpaceInfo GetSpaceInfo(const QString &path)
Returns the disk space info of the partition containing path.
quint64 Free_
How much free space there is.
QString FindInSystemPath(const QString &name, const QStringList &paths, const std::function< bool(QFileInfo)> &filter)
Searches for a file in system paths according to a filter.
Directory with shared data files.
QDir GetUserDir(UserDir dir, const QString &subpath)
quint64 Capacity_
The capacity of the partition.
QDir CreateIfNotExists(QString path)
Creates a path if it doesn't exist.
QUrl GetSysPathUrl(SysPath path, const QString &subfolder, const QString &filename)
Returns path to the file in the given root path and subfolder.
QString GetSysPath(SysPath path, const QString &suffix, const QString &filename)
Returns path to the file in the given root path and subfolder.
quint64 Available_
How much space is available to the current user.
UserDir
Describes various user-specific paths.
Contains information about a partition's disk space.
QStringList GetSystemPaths()
Returns the components of the system PATH variable.
QString GetTemporaryName(const QString &pattern)
Returns a temporary filename.
QStringList GetPathCandidates(SysPath path, QString suffix)
Returns possible full paths for the path and subfolder.