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