/
qgsserversettings.sip.in
166 lines (117 loc) · 3.81 KB
/
qgsserversettings.sip.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserversettings.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsServerSettings
{
%Docstring
Provides a way to retrieve settings by prioritizing according to environment variables, ini file and default values.
.. versionadded:: 3.0
%End
%TypeHeaderCode
#include "qgsserversettings.h"
%End
public:
QgsServerSettings();
%Docstring
Constructor.
%End
void load();
%Docstring
Load settings according to current environment variables.
%End
bool load( const QString &envVarName );
%Docstring
Load setting for a specific environment variable name.
:return: TRUE if loading is successful, FALSE in case of an invalid name.
%End
void logSummary() const;
%Docstring
Log a summary of settings currently loaded.
%End
QString iniFile() const;
%Docstring
Returns the ini file loaded by QSetting.
:return: the path of the ini file or an empty string if none is loaded.
%End
bool parallelRendering() const;
%Docstring
Returns parallel rendering setting.
:return: TRUE if parallel rendering is activated, FALSE otherwise.
%End
int maxThreads() const;
%Docstring
Returns the maximum number of threads to use.
:return: the number of threads.
%End
int maxCacheLayers() const;
%Docstring
Returns the maximum number of cached layers.
:return: the number of cached layers.
%End
Qgis::MessageLevel logLevel() const;
%Docstring
Returns the log level.
:return: the log level.
%End
QString projectFile() const;
%Docstring
Returns the QGS project file to use.
:return: the path of the QGS project or an empty string if none is defined.
%End
QString logFile() const;
%Docstring
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.
:return: true if logging to stderr is activated, false otherwise.
.. versionadded:: 3.4
%End
qint64 cacheSize() const;
%Docstring
Returns the cache size.
:return: the cache size.
%End
QString cacheDirectory() const;
%Docstring
Returns the cache directory.
:return: the directory.
%End
QString overrideSystemLocale() const;
%Docstring
Overrides system locale
:return: the optional override for system locale.
.. versionadded:: 3.8
%End
bool showGroupSeparator() const;
%Docstring
Show group (thousand) separator
:return: if group separator must be shown, default to FALSE.
.. 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.
.. versionadded:: 3.8
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserversettings.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/