This class contains some static resources that are used by the application. More...
#include <static.h>
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 TemplateLoader * | templateLoader = 0 |
Cache for template files. | |
static HttpSessionStore * | sessionStore = 0 |
Storage for session cookies. | |
static StaticFileController * | staticFileController = 0 |
Controller for static files. |
This class contains some static resources that are used by the application.
Definition at line 18 of file static.h.
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.
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:
Definition at line 20 of file static.cpp.