![]() |
LeechCraft
0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
|
Go to the source code of this file.
Classes | |
struct | LeechCraft::Util::SpaceInfo |
Contains information about a partition's disk space. More... | |
Namespaces | |
LeechCraft | |
LeechCraft::Util | |
Enumerations | |
enum | LeechCraft::Util::SysPath { LeechCraft::Util::SysPath::QML, LeechCraft::Util::SysPath::Share } |
Describes various root paths recognized by GetSysPath(). More... | |
enum | LeechCraft::Util::UserDir { LeechCraft::Util::UserDir::Cache, LeechCraft::Util::UserDir::LC } |
Describes various user-specific paths. More... | |
Functions | |
QStringList | LeechCraft::Util::GetPathCandidates (SysPath path, QString subfolder) |
Returns possible full paths for the path and subfolder. More... | |
QString | LeechCraft::Util::GetSysPath (SysPath path, const QString &subfolder, const QString &filename) |
Returns path to the file in the given root path and subfolder. More... | |
QUrl | LeechCraft::Util::GetSysPathUrl (SysPath path, const QString &subfolder, const QString &filename) |
Returns path to the file in the given root path and subfolder. More... | |
QStringList | LeechCraft::Util::GetSystemPaths () |
Returns the components of the system PATH variable. More... | |
QString | LeechCraft::Util::FindInSystemPath (const QString &name, const QStringList &paths, const std::function< bool(QFileInfo)> &filter=std::function< bool(QFileInfo)>()) |
Searches for a file in system paths according to a filter. More... | |
QDir | LeechCraft::Util::GetUserDir (UserDir dir, const QString &subpath) |
QDir | LeechCraft::Util::CreateIfNotExists (QString path) |
Creates a path if it doesn't exist. More... | |
QString | LeechCraft::Util::GetTemporaryName (const QString &pattern=QString("lc_temp.XXXXXX")) |
Returns a temporary filename. More... | |
SpaceInfo | LeechCraft::Util::GetSpaceInfo (const QString &path) |
Returns the disk space info of the partition containing path. More... | |