QGIS/python/server/auto_generated/qgsserversettings.sip.in

167 lines
3.8 KiB
Plaintext
Raw Normal View History

2017-06-26 09:57:09 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserversettings.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2017-01-10 11:54:07 +01:00
class QgsServerSettings
{
2017-06-26 09:57:09 +02:00
%Docstring
2018-07-11 20:55:54 +01:00
Provides a way to retrieve settings by prioritizing according to environment variables, ini file and default values.
2017-12-15 10:36:55 -04:00
2017-06-26 09:57:09 +02:00
.. versionadded:: 3.0
%End
2017-01-10 11:54:07 +01:00
%TypeHeaderCode
#include "qgsserversettings.h"
%End
public:
2017-06-26 09:57:09 +02:00
2017-01-10 11:54:07 +01:00
QgsServerSettings();
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor.
2017-06-26 09:57:09 +02:00
%End
2017-01-10 11:54:07 +01:00
void load();
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Load settings according to current environment variables.
2017-06-26 09:57:09 +02:00
%End
bool load( const QString &envVarName );
%Docstring
2017-12-15 10:36:55 -04:00
Load setting for a specific environment variable name.
2019-02-26 19:54:09 +10:00
:return: ``True`` if loading is successful, ``False`` in case of an invalid name.
2017-06-26 09:57:09 +02:00
%End
2017-01-10 11:54:07 +01:00
void logSummary() const;
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Log a summary of settings currently loaded.
2017-06-26 09:57:09 +02:00
%End
2017-01-10 11:54:07 +01:00
QString iniFile() const;
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the ini file loaded by QSetting.
:return: the path of the ini file or an empty string if none is loaded.
2017-06-26 09:57:09 +02:00
%End
bool parallelRendering() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns parallel rendering setting.
2019-02-26 19:54:09 +10:00
:return: ``True`` if parallel rendering is activated, ``False`` otherwise.
2017-06-26 09:57:09 +02:00
%End
2017-01-10 11:54:07 +01:00
int maxThreads() const;
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the maximum number of threads to use.
:return: the number of threads.
2017-06-26 09:57:09 +02:00
%End
2017-01-10 11:54:07 +01:00
2017-06-26 09:57:09 +02:00
int maxCacheLayers() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns the maximum number of cached layers.
:return: the number of cached layers.
2017-06-26 09:57:09 +02:00
%End
2017-01-10 11:54:07 +01:00
Qgis::MessageLevel logLevel() const;
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the log level.
:return: the log level.
2017-06-26 09:57:09 +02:00
%End
2017-01-10 11:54:07 +01:00
QString projectFile() const;
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the QGS project file to use.
:return: the path of the QGS project or an empty string if none is defined.
2017-06-26 09:57:09 +02:00
%End
2017-01-10 11:54:07 +01:00
2017-06-26 09:57:09 +02:00
QString logFile() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns the log file.
:return: the path of the log file or an empty string if none is defined.
%End
bool logStderr() const;
%Docstring
Returns whether logging to stderr is activated.
2019-02-26 19:54:09 +10:00
:return: ``True`` if logging to stderr is activated, ``False`` otherwise.
.. versionadded:: 3.4
2017-06-26 09:57:09 +02:00
%End
2017-01-10 11:54:07 +01:00
qint64 cacheSize() const;
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the cache size.
:return: the cache size.
2017-06-26 09:57:09 +02:00
%End
2017-01-10 11:54:07 +01:00
QString cacheDirectory() const;
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the cache directory.
:return: the directory.
%End
QString overrideSystemLocale() const;
%Docstring
Overrides system locale
:return: the optional override for system locale.
2019-04-01 17:25:36 +02:00
.. versionadded:: 3.8
%End
bool showGroupSeparator() const;
%Docstring
Show group (thousand) separator
:return: if group separator must be shown, default to ``False``.
2019-04-01 17:25:36 +02:00
.. versionadded:: 3.8
%End
int wmsMaxHeight() const;
%Docstring
Returns the server-wide max height of a WMS GetMap request. The lower one of this and the project configuration is used.
:return: the max height of a WMS GetMap request.
.. versionadded:: 3.8
%End
int wmsMaxWidth() const;
%Docstring
Returns the server-wide max width of a WMS GetMap request. The lower one of this and the project configuration is used.
:return: the max width of a WMS GetMap request.
2019-04-01 17:25:36 +02:00
.. versionadded:: 3.8
2017-06-26 09:57:09 +02:00
%End
2017-01-10 11:54:07 +01:00
};
2017-06-26 09:57:09 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserversettings.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/