18 #ifndef QGSSERVERPARAMETERS_H 19 #define QGSSERVERPARAMETERS_H 26 #include "qgis_server.h" 44 const QVariant defaultValue = QVariant(
"" ) );
59 virtual bool isValid()
const;
64 QString toString()
const;
71 QStringList toStringList(
char delimiter =
',' )
const;
79 QList<int> toIntList(
bool &ok,
char delimiter =
',' )
const;
87 QList<double> toDoubleList(
bool &ok,
char delimiter =
',' )
const;
95 QList<QColor> toColorList(
bool &ok,
char delimiter =
',' )
const;
103 QList<QgsGeometry> toGeomList(
bool &ok,
char delimiter =
',' )
const;
117 int toInt(
bool &ok )
const;
124 double toDouble(
bool &ok )
const;
137 QColor toColor(
bool &ok )
const;
145 QUrl toUrl(
bool &ok )
const;
153 QString loadUrl(
bool &ok )
const;
160 static void raiseError(
const QString &msg );
197 const QVariant::Type type = QVariant::String,
198 const QVariant defaultValue = QVariant(
"" ) );
248 void load(
const QUrlQuery &query );
260 void add(
const QString &key,
const QString &value );
266 void remove(
const QString &key );
279 QString value(
const QString &key )
const;
284 QUrlQuery urlQuery()
const;
289 QMap<QString, QString> toMap()
const;
296 QString service()
const;
303 QString request()
const;
317 QString fileName()
const;
324 QString version()
const;
332 virtual bool loadParameter(
const QString &name,
const QString &value );
340 QMap<QgsServerParameter::Name, QgsServerParameter> mParameters;
A rectangle specified with double values.
Name
Parameter's name common to all services.
QMap< QString, QString > mUnmanagedParameters
static void raiseError(const QString &msg)
Raises an exception in case of an invalid parameters.
Parameter common to all services (WMS, WFS, ...)
QgsServerParameter::Name mName
QgsServerParameters provides an interface to retrieve and manipulate global parameters received from ...
Definition of a parameter with basic conversion methods.