![]() |
LeechCraft
0.6.70-13729-g7046a9d2a7
Modular cross-platform feature rich live environment.
|
#include "paths.h"
#include <stdexcept>
#include <boost/filesystem.hpp>
#include <QFile>
#include <QTemporaryFile>
#include <QtDebug>
#include <QDir>
#include <QUrl>
#include <QStandardPaths>
#include <util/util.h>
Go to the source code of this file.
Namespaces | |
LC | |
LC::Util | |
Functions | |
QStringList | LC::Util::GetPathCandidates (SysPath path, QString subfolder) |
Returns possible full paths for the path and subfolder. More... | |
QString | LC::Util::GetSysPath (SysPath path, const QString &subfolder, const QString &filename) |
Returns path to the file in the given root path and subfolder. More... | |
QUrl | LC::Util::GetSysPathUrl (SysPath path, const QString &subfolder, const QString &filename) |
Returns path to the file in the given root path and subfolder. More... | |
QStringList | LC::Util::GetSystemPaths () |
Returns the components of the system PATH variable. More... | |
QString | LC::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 | LC::Util::GetUserDir (UserDir dir, const QString &subpath) |
QDir | LC::Util::CreateIfNotExists (QString path) |
Creates a path if it doesn't exist. More... | |
QString | LC::Util::GetTemporaryName (const QString &pattern=QString("lc_temp.XXXXXX")) |
Returns a temporary filename. More... | |
SpaceInfo | LC::Util::GetSpaceInfo (const QString &path) |
Returns the disk space info of the partition containing path. More... | |