trikRuntime
trikKernel::Paths Class Reference

Service that provides information about file paths used by system. More...

#include <paths.h>

Static Public Member Functions

static QString configsPath ()
 Path to a directory with trikControl config files. More...
 
static QString coreDumpPath ()
 Where to put core dump if something goes wrong. More...
 
static QString logsPath ()
 Where to put log files. More...
 
static QString mediaPath ()
 Path to a directory containing "media" folder (with images and sounds). More...
 
static QString systemScriptsPath ()
 Path to a directory with "system.js" file. More...
 
static QString userScriptsPath ()
 Where to put script files sent by TRIK Studio and written by user. More...
 
static QString translationsPath ()
 Name of a directory containing "translations" folder. More...
 
static QString trikRcName ()
 Name (with path) of trikrc file. More...
 
static QString localSettings ()
 Name (with path) of .ini file with local settings like locale and hull number. More...
 
static QString hostnameName ()
 Name (with path) of hostname file. More...
 

Detailed Description

Service that provides information about file paths used by system.

If there is "system-config.xml" file in a folder with launched binary, this service assumes that everything is stored near binary (as in old "copy" deployment style), if not, it uses common Linux conventions for file locations (configs in /etc/trik/trikRuntime/, media in /usr/share/trikRuntime/ and so on). All methods returning paths return them ending with "/".

Member Function Documentation

QString Paths::configsPath ( )
static

Path to a directory with trikControl config files.

QString Paths::coreDumpPath ( )
static

Where to put core dump if something goes wrong.

QString Paths::hostnameName ( )
static

Name (with path) of hostname file.

QString Paths::localSettings ( )
static

Name (with path) of .ini file with local settings like locale and hull number.

QString Paths::logsPath ( )
static

Where to put log files.

QString Paths::mediaPath ( )
static

Path to a directory containing "media" folder (with images and sounds).

QString Paths::systemScriptsPath ( )
static

Path to a directory with "system.js" file.

QString Paths::translationsPath ( )
static

Name of a directory containing "translations" folder.

QString Paths::trikRcName ( )
static

Name (with path) of trikrc file.

QString Paths::userScriptsPath ( )
static

Where to put script files sent by TRIK Studio and written by user.


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