|
dRonin
adbada4
dRonin GCS
|
#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) |
Definition at line 40 of file pathutils.h.
| Utils::PathUtils::PathUtils | ( | ) |
Definition at line 38 of file pathutils.cpp.
|
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.
|
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.
|
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.