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

122 lines
2.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.
: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.
: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.
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.
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 *
************************************************************************/