18 #ifndef QGSSERVERPARAMETERS_H
19 #define QGSSERVERPARAMETERS_H
26 #include "qgis_server.h"
44 const QVariant defaultValue = QVariant(
"" ) );
59 virtual bool isValid()
const;
65 QString toString(
bool defaultValue =
false )
const;
73 QStringList toStringList(
char delimiter =
',',
bool skipEmptyParts =
true )
const;
81 QList<int> toIntList(
bool &ok,
char delimiter =
',' )
const;
89 QList<double> toDoubleList(
bool &ok,
char delimiter =
',' )
const;
97 QList<QColor> toColorList(
bool &ok,
char delimiter =
',' )
const;
105 QList<QgsGeometry> toGeomList(
bool &ok,
char delimiter =
',' )
const;
112 QStringList toOgcFilterList()
const;
119 QStringList toExpressionList()
const;
133 int toInt(
bool &ok )
const;
140 double toDouble(
bool &ok )
const;
153 QColor toColor(
bool &ok )
const;
161 QUrl toUrl(
bool &ok )
const;
169 QString loadUrl(
bool &ok )
const;
176 static void raiseError(
const QString &msg );
213 const QVariant::Type type = QVariant::String,
214 const QVariant defaultValue = QVariant(
"" ) );
220 void raiseError()
const;
264 void load(
const QUrlQuery &query );
276 void add(
const QString &key,
const QString &value );
282 void remove(
const QString &key );
295 QString value(
const QString &key )
const;
300 QUrlQuery urlQuery()
const;
305 QMap<QString, QString> toMap()
const;
312 QString service()
const;
319 virtual QString request()
const;
333 QString fileName()
const;
340 virtual QString version()
const;
348 virtual bool loadParameter(
const QString &name,
const QString &value );
356 QMap<QgsServerParameter::Name, QgsServerParameter> mParameters;
A rectangle specified with double values.
Definition of a parameter with basic conversion methods.
virtual ~QgsServerParameterDefinition()=default
Default destructor for QgsServerParameterDefinition.
Parameter common to all services (WMS, WFS, ...)
QgsServerParameter::Name mName
Name
Parameter's name common to all services.
QgsServerParameters provides an interface to retrieve and manipulate global parameters received from ...
virtual ~QgsServerParameters()=default
QMap< QString, QString > mUnmanagedParameters