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;
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(
"" ) );
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;