18 #ifndef QGSSERVERPARAMETERS_H 19 #define QGSSERVERPARAMETERS_H 27 #include "qgis_server.h" 45 const QVariant defaultValue = QVariant(
"" ) );
60 virtual bool isValid()
const;
65 QString toString()
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;
119 int toInt(
bool &ok )
const;
126 double toDouble(
bool &ok )
const;
139 QColor toColor(
bool &ok )
const;
147 QUrl toUrl(
bool &ok )
const;
155 QString loadUrl(
bool &ok )
const;
162 static void raiseError(
const QString &msg );
199 const QVariant::Type type = QVariant::String,
200 const QVariant defaultValue = QVariant( "" ) );
206 void raiseError() const;
237 QgsServerParameters();
242 QgsServerParameters(
const QUrlQuery &query );
244 virtual ~QgsServerParameters() =
default;
250 void load(
const QUrlQuery &query );
262 void add(
const QString &key,
const QString &value );
268 void remove(
const QString &key );
281 QString value(
const QString &key )
const;
286 QUrlQuery urlQuery()
const;
291 QMap<QString, QString> toMap()
const;
298 QString service()
const;
305 QString request()
const;
319 QString fileName()
const;
326 QString version()
const;
334 virtual bool loadParameter(
const QString &name,
const QString &value );
342 QMap<QgsServerParameter::Name, QgsServerParameter> mParameters;
A rectangle specified with double values.
Name
Parameter's name common to all services.
QMap< QString, QString > mUnmanagedParameters
Parameter common to all services (WMS, WFS, ...)
QgsServerParameters provides an interface to retrieve and manipulate global parameters received from ...
Definition of a parameter with basic conversion methods.