#include <twebapplication.h>
The TWebApplication class provides an event loop for TreeFrog applications.
◆ MultiProcessingModule
Enumerator |
---|
Invalid | |
Thread | |
Epoll | |
◆ TWebApplication()
TWebApplication::TWebApplication |
( |
int & |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ ~TWebApplication()
TWebApplication::~TWebApplication |
( |
| ) |
|
◆ accessLogFilePath()
QString TWebApplication::accessLogFilePath |
( |
| ) |
const |
Returns the absolute file path of the access log, which is set by the setting AccessLog.FilePath in the application.ini.
◆ applicationServerId()
int TWebApplication::applicationServerId |
( |
| ) |
const |
|
inline |
◆ appSettingsFileExists()
bool TWebApplication::appSettingsFileExists |
( |
| ) |
const |
Returns true if the file of the application settings exists; otherwise returns false.
◆ appSettingsFilePath()
QString TWebApplication::appSettingsFilePath |
( |
| ) |
const |
Returns the absolute file path of the application settings.
◆ cacheBackend()
QString TWebApplication::cacheBackend |
( |
| ) |
const |
◆ cacheEnabled()
bool TWebApplication::cacheEnabled |
( |
| ) |
const |
◆ cleanupCache()
void TWebApplication::cleanupCache |
( |
| ) |
|
◆ configPath()
QString TWebApplication::configPath |
( |
| ) |
const |
Returns the absolute path of the config directory.
◆ databaseContextMainThread()
QThread * TWebApplication::databaseContextMainThread |
( |
| ) |
const |
◆ databaseEnvironment()
QString TWebApplication::databaseEnvironment |
( |
| ) |
const |
|
inline |
◆ databaseIdForCache()
int TWebApplication::databaseIdForCache |
( |
| ) |
const |
◆ encodingForHttpOutput()
QStringConverter::Encoding TWebApplication::encodingForHttpOutput |
( |
| ) |
const |
|
inline |
◆ encodingForInternal()
QStringConverter::Encoding TWebApplication::encodingForInternal |
( |
| ) |
const |
|
inline |
◆ exec()
int TWebApplication::exec |
( |
| ) |
|
Enters the main event loop and waits until exit() is called.
Returns the value that was set to exit() (which is 0 if exit() is called via quit()).
◆ getConfig()
const QVariantMap & TWebApplication::getConfig |
( |
const QString & |
configName | ) |
|
◆ getConfigValue()
QVariant TWebApplication::getConfigValue |
( |
const QString & |
configName, |
|
|
const QString & |
key, |
|
|
const QVariant & |
defaultValue = QVariant() |
|
) |
| |
◆ initializeCache()
void TWebApplication::initializeCache |
( |
| ) |
|
◆ internetMediaType()
QByteArray TWebApplication::internetMediaType |
( |
const QString & |
ext, |
|
|
bool |
appendCharset = false |
|
) |
| |
Returns the internet media type associated with the file extension ext.
◆ isKvsAvailable()
bool TWebApplication::isKvsAvailable |
( |
Tf::KvsEngine |
engine | ) |
const |
Returns true if the settings of the specified engine is available; otherwise returns false.
◆ kvsSettings()
const QVariantMap & TWebApplication::kvsSettings |
( |
Tf::KvsEngine |
engine | ) |
const |
Returns a reference to the settings object for the specified engine.
◆ libPath()
QString TWebApplication::libPath |
( |
| ) |
const |
Returns the absolute path of the library directory.
◆ loggerSettings()
const QVariantMap & TWebApplication::loggerSettings |
( |
| ) |
const |
|
inline |
Returns a reference to the QSettings object for settings of the logger, which file is logger.ini.
◆ logPath()
QString TWebApplication::logPath |
( |
| ) |
const |
Returns the absolute path of the log directory.
◆ mainDatabaseContext()
◆ maxNumberOfAppServers()
int TWebApplication::maxNumberOfAppServers |
( |
| ) |
const |
Returns the maximum number of application servers, which is set in the application.ini.
◆ maxNumberOfThreadsPerAppServer()
int TWebApplication::maxNumberOfThreadsPerAppServer |
( |
| ) |
const |
Maximum number of action threads allowed to start simultaneously per server process.
◆ multiProcessingModule()
Returns the module name for multi-processing that is set by the setting MultiProcessingModule in the application.ini.
◆ pluginPath()
QString TWebApplication::pluginPath |
( |
| ) |
const |
Returns the absolute path of the plugin directory.
◆ publicPath()
QString TWebApplication::publicPath |
( |
| ) |
const |
Returns the absolute path of the public directory.
◆ routesConfigFilePath()
QString TWebApplication::routesConfigFilePath |
( |
| ) |
const |
Returns the absolute file path of the routes config.
◆ setDatabaseEnvironment()
void TWebApplication::setDatabaseEnvironment |
( |
const QString & |
environment | ) |
|
|
inline |
◆ setMultiProcessingModule()
◆ signalNumber()
int TWebApplication::signalNumber |
( |
| ) |
|
|
staticprotected |
Returns the integral number of the received signal.
◆ sqlDatabaseSettings()
const QVariantMap & TWebApplication::sqlDatabaseSettings |
( |
int |
databaseId | ) |
const |
Returns a reference to the QSettings object for settings of the SQL database databaseId.
◆ sqlDatabaseSettingsCount()
int TWebApplication::sqlDatabaseSettingsCount |
( |
| ) |
const |
Returns the number of SQL database settings files set by the setting DatabaseSettingsFiles in the application.ini.
◆ sqlQueryLogFilePath()
QString TWebApplication::sqlQueryLogFilePath |
( |
| ) |
const |
Returns the absolute file path of the SQL query log, which is set by the setting SqlQueryLogFile in the application.ini.
◆ systemLogFilePath()
QString TWebApplication::systemLogFilePath |
( |
| ) |
const |
Returns the absolute file path of the system log, which is set by the setting SystemLog.FilePath in the application.ini.
◆ timerEvent()
void TWebApplication::timerEvent |
( |
QTimerEvent * |
event | ) |
|
|
protected |
Reimplemented from QObject::timerEvent().
◆ tmpPath()
QString TWebApplication::tmpPath |
( |
| ) |
const |
Returns the absolute path of the tmp directory.
◆ validationErrorMessage()
QString TWebApplication::validationErrorMessage |
( |
int |
rule | ) |
const |
Returns the error message for validation of the given rule.
These messages are defined in the validation.ini.
◆ validationSettings()
const QVariantMap & TWebApplication::validationSettings |
( |
| ) |
const |
|
inline |
Returns a reference to the QSettings object for settings of the validation, which file is validation.ini.
◆ webRootExists()
bool TWebApplication::webRootExists |
( |
| ) |
const |
Returns true if the web root directory exists; otherwise returns false.
◆ webRootPath()
QString TWebApplication::webRootPath |
( |
| ) |
const |
|
inline |
Returns the absolute path of the web root directory.
The documentation for this class was generated from the following files: