QGIS API Documentation
3.6.0-Noosa (5873452)
|
Provides a way to retrieve settings by prioritizing according to environment variables, ini file and default values. More...
#include <qgsserversettings.h>
Classes | |
struct | Setting |
Public Member Functions | |
QgsServerSettings () | |
Constructor. More... | |
QString | cacheDirectory () const |
Returns the cache directory. More... | |
qint64 | cacheSize () const |
Returns the cache size. More... | |
QString | iniFile () const |
Returns the ini file loaded by QSetting. More... | |
void | load () |
Load settings according to current environment variables. More... | |
bool | load (const QString &envVarName) |
Load setting for a specific environment variable name. More... | |
QString | logFile () const |
Returns the log file. More... | |
Qgis::MessageLevel | logLevel () const |
Returns the log level. More... | |
bool | logStderr () const |
Returns whether logging to stderr is activated. More... | |
void | logSummary () const |
Log a summary of settings currently loaded. More... | |
int | maxCacheLayers () const |
Returns the maximum number of cached layers. More... | |
int | maxThreads () const |
Returns the maximum number of threads to use. More... | |
bool | parallelRendering () const |
Returns parallel rendering setting. More... | |
QString | projectFile () const |
Returns the QGS project file to use. More... | |
Provides a way to retrieve settings by prioritizing according to environment variables, ini file and default values.
Definition at line 75 of file qgsserversettings.h.
QgsServerSettings::QgsServerSettings | ( | ) |
Constructor.
Definition at line 24 of file qgsserversettings.cpp.
QString QgsServerSettings::cacheDirectory | ( | ) | const |
Returns the cache directory.
Definition at line 318 of file qgsserversettings.cpp.
qint64 QgsServerSettings::cacheSize | ( | ) | const |
Returns the cache size.
Definition at line 313 of file qgsserversettings.cpp.
QString QgsServerSettings::iniFile | ( | ) | const |
Returns the ini file loaded by QSetting.
Definition at line 273 of file qgsserversettings.cpp.
void QgsServerSettings::load | ( | ) |
Load settings according to current environment variables.
Definition at line 144 of file qgsserversettings.cpp.
bool QgsServerSettings::load | ( | const QString & | envVarName | ) |
Load setting for a specific environment variable name.
Definition at line 160 of file qgsserversettings.cpp.
QString QgsServerSettings::logFile | ( | ) | const |
Returns the log file.
Definition at line 288 of file qgsserversettings.cpp.
Qgis::MessageLevel QgsServerSettings::logLevel | ( | ) | const |
bool QgsServerSettings::logStderr | ( | ) | const |
Returns whether logging to stderr is activated.
Definition at line 293 of file qgsserversettings.cpp.
void QgsServerSettings::logSummary | ( | ) | const |
Log a summary of settings currently loaded.
Definition at line 250 of file qgsserversettings.cpp.
int QgsServerSettings::maxCacheLayers | ( | ) | const |
Returns the maximum number of cached layers.
Definition at line 303 of file qgsserversettings.cpp.
int QgsServerSettings::maxThreads | ( | ) | const |
Returns the maximum number of threads to use.
Definition at line 283 of file qgsserversettings.cpp.
bool QgsServerSettings::parallelRendering | ( | ) | const |
Returns parallel rendering setting.
Definition at line 278 of file qgsserversettings.cpp.
QString QgsServerSettings::projectFile | ( | ) | const |
Returns the QGS project file to use.
Definition at line 308 of file qgsserversettings.cpp.