dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Utils::PathUtils Class Reference

#include <pathutils.h>

Public Member Functions

 PathUtils ()
 
QString GetStoragePath ()
 
QString RemoveStoragePath (QString path)
 
QString InsertStoragePath (QString path)
 
QString getSettingsFilename ()
 
void setSettingsFilename (QString filename)
 

Static Public Member Functions

static QString GetDataPath ()
 
static QString RemoveDataPath (QString path)
 
static QString InsertDataPath (QString path)
 

Detailed Description

Definition at line 40 of file pathutils.h.

Constructor & Destructor Documentation

Utils::PathUtils::PathUtils ( )

Definition at line 38 of file pathutils.cpp.

Member Function Documentation

QString Utils::PathUtils::GetDataPath ( )
static

Returns the base path of the share directory. Path is in Qt/Unix conventions, separated by "/".

Definition at line 47 of file pathutils.cpp.

QString Utils::PathUtils::getSettingsFilename ( )

Definition at line 147 of file pathutils.cpp.

QString Utils::PathUtils::GetStoragePath ( )

Gets a standard user-writable location for the system

Definition at line 98 of file pathutils.cpp.

QString Utils::PathUtils::InsertDataPath ( QString  path)
static

Inserts the data path (only if the path starts with %DATAPATH%%)

Returns a "/" or "\" separated path depending on platform conventions.

Definition at line 84 of file pathutils.cpp.

QString Utils::PathUtils::InsertStoragePath ( QString  path)

Inserts the standard storage path is there is a storage path tag

Definition at line 135 of file pathutils.cpp.

QString Utils::PathUtils::RemoveDataPath ( QString  path)
static

Cuts the standard data path from the 'path' argument. If path does not start with the standard data path, then do nothing.

Always returns a path converted to "/".

Definition at line 67 of file pathutils.cpp.

QString Utils::PathUtils::RemoveStoragePath ( QString  path)

Removes the standard storage path and replace with a tag

Definition at line 120 of file pathutils.cpp.

void Utils::PathUtils::setSettingsFilename ( QString  filename)

Definition at line 152 of file pathutils.cpp.


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