20 #ifndef QGSSERVERSETTINGS_H 21 #define QGSSERVERSETTINGS_H 27 #include "qgis_server.h" 67 QGIS_SERVER_WMS_MAX_WIDTH
107 bool load(
const QString &envVarName );
112 void logSummary()
const;
118 QString iniFile()
const;
124 bool parallelRendering()
const;
130 int maxThreads()
const;
136 int maxCacheLayers()
const;
148 QString projectFile()
const;
154 QString logFile()
const;
161 bool logStderr()
const;
167 qint64 cacheSize()
const;
173 QString cacheDirectory()
const;
180 QString overrideSystemLocale()
const;
187 bool showGroupSeparator()
const;
206 QMap<QgsServerSettingsEnv::EnvVar, QString> getEnv()
const;
207 void loadQSettings(
const QString &envOptPath )
const;
208 void prioritize(
const QMap<QgsServerSettingsEnv::EnvVar, QString> &env );
210 QMap< QgsServerSettingsEnv::EnvVar, Setting > mSettings;
SERVER_EXPORT int wmsMaxWidth(const QgsProject &project)
Returns the maximum width for WMS images defined in a QGIS project.
Source
Source of the parameter used in the configuration.
Provides a way to retrieve settings by prioritizing according to environment variables, ini file and default values.
MessageLevel
Level for messages This will be used both for message log and message bar in application.
Show group (thousands) separator when formatting numeric values, defaults to false (since QGIS 3...
Override system locale (since QGIS 3.8)
Provides some enum describing the environment currently supported for configuration.
QgsServerSettingsEnv::EnvVar envVar
QgsServerSettingsEnv::Source src
EnvVar
Environment variables to configure the server.
SERVER_EXPORT int wmsMaxHeight(const QgsProject &project)
Returns the maximum height for WMS images defined in a QGIS project.