Static Public Member Functions | Static Public Attributes

Static Class Reference

This class contains some static resources that are used by the application. More...

#include <static.h>

List of all members.

Static Public Member Functions

static QString getConfigFileName ()
 Search the main config file and return its full path.
static QString getConfigDir ()
 Gets the directory where the main config file is located.

Static Public Attributes

static TemplateLoadertemplateLoader = 0
 Cache for template files.
static HttpSessionStoresessionStore = 0
 Storage for session cookies.
static StaticFileControllerstaticFileController = 0
 Controller for static files.

Detailed Description

This class contains some static resources that are used by the application.

Definition at line 18 of file static.h.


Member Function Documentation

QString Static::getConfigDir (  )  [static]

Gets the directory where the main config file is located.

On the first call, the INI file gets searched. If not found, the application aborts with an error message.

See also:
getConfigFileName()

Definition at line 24 of file static.cpp.

QString Static::getConfigFileName (  )  [static]

Search the main config file and return its full path.

On the first call, the INI file gets searched. If not found, the application aborts with an error message.

The filename is the applications name plus the ending ".ini". It is searched in the following directories:

  • Same directory as the applications executable file
  • In ../etc relative to the applications executable file
  • In ../../etc relative to the applications executable file
  • In /etc/xdg/{organisation name} on the root drive
  • In /etc/opt on the root drive
  • In /etc on the root drive

Definition at line 20 of file static.cpp.


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