LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
paths.h File Reference
#include <functional>
#include <QStringList>
#include <QFileInfo>
#include "sysconfig.h"
+ Include dependency graph for paths.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LC::Util::SpaceInfo
 Contains information about a partition's disk space. More...
 

Namespaces

 LC
 
 LC::Util
 

Enumerations

enum  LC::Util::SysPath {
  LC::Util::SysPath::QML,
  LC::Util::SysPath::Share
}
 Describes various root paths recognized by GetSysPath(). More...
 
enum  LC::Util::UserDir {
  LC::Util::UserDir::Cache,
  LC::Util::UserDir::LC
}
 Describes various user-specific paths. More...
 

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={})
 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={})
 Returns a temporary filename. More...
 
SpaceInfo LC::Util::GetSpaceInfo (const QString &path)
 Returns the disk space info of the partition containing path. More...