#include <qcstandardpaths.h>

Inheritance diagram for QCStandardPaths:
Inheritance graph
Collaboration diagram for QCStandardPaths:
Collaboration graph

Public Types

enum  StandardLocation {
  DesktopLocation, DocumentsLocation, FontsLocation, ApplicationsLocation,
  MusicLocation, MoviesLocation, PicturesLocation, TempLocation,
  HomeLocation, DataLocation, CacheLocation, GenericDataLocation,
  RuntimeLocation, ConfigLocation, DownloadLocation, GenericCacheLocation,
  GenericConfigLocation, AppDataLocation, AppConfigLocation, AppLocalDataLocation = DataLocation
}
List of standard location. More...
 

Public Member Functions

 QCStandardPaths (QObject *parent=0)
QML Wrapper of QStandardPaths. More...
 
 ~QCStandardPaths ()
 
Q_INVOKABLE QStringList standardLocations (int standardLocation)
 
Q_INVOKABLE QString writableLocation (int standardLocation)
 
Q_INVOKABLE QString displayName (int standardLocation)
 

Member Enumeration Documentation

List of standard location.

Enumerator
DesktopLocation 
DocumentsLocation 
FontsLocation 
ApplicationsLocation 
MusicLocation 
MoviesLocation 
PicturesLocation 
TempLocation 
HomeLocation 
DataLocation 
CacheLocation 
GenericDataLocation 
RuntimeLocation 
ConfigLocation 
DownloadLocation 
GenericCacheLocation 
GenericConfigLocation 
AppDataLocation 
AppConfigLocation 
AppLocalDataLocation 

Constructor & Destructor Documentation

QCStandardPaths::QCStandardPaths ( QObject *  parent = 0)
explicit

QML Wrapper of QStandardPaths.

StandardPaths QCStandardPaths

It is a singleton component

enumeration StandardPaths::stanardLocation It is equivalent to QStandardPaths::standardLocation()

Example:

console.log(StandardPaths.standardLocations(StandardPaths.ConfigLocation)); // Get standard location patsh of config.
QCStandardPaths::~QCStandardPaths ( )

Member Function Documentation

QString QCStandardPaths::displayName ( int  standardLocation)

string StandardPaths::displayName(int standardLocation) It is equivalent to QStandardPaths::displayName()

QStringList QCStandardPaths::standardLocations ( int  standardLocation)

array StandardPaths::standardLocations(int standardLocation) It is equivalent to QStandardPaths::standardLocations()

QString QCStandardPaths::writableLocation ( int  standardLocation)

string StandardPaths::writableLocation(int standardLocation) It is equivalent to QStandardPaths::writableLocation()


The documentation for this class was generated from the following files: