| QGIS API Documentation
    3.18.1-Zürich (202f1bf7e5)
    | 
Parameter common to all services (WMS, WFS, ...) More...
#include <qgsserverparameters.h>

| Public Types | |
| enum | Name { UNKNOWN , SERVICE , VERSION_SERVICE , REQUEST , MAP , FILE_NAME } | 
| Parameter's name common to all services.  More... | |
| Public Member Functions | |
| QgsServerParameter (const QgsServerParameter::Name name=QgsServerParameter::UNKNOWN, const QVariant::Type type=QVariant::String, const QVariant defaultValue=QVariant("")) | |
| Constructor for QgsServerParameter.  More... | |
| void | raiseError () const | 
| Raises an error in case of an invalid conversion.  More... | |
|  Public Member Functions inherited from QgsServerParameterDefinition | |
| QgsServerParameterDefinition (const QVariant::Type type=QVariant::String, const QVariant defaultValue=QVariant("")) | |
| Constructor for QgsServerParameterDefinition.  More... | |
| virtual | ~QgsServerParameterDefinition ()=default | 
| Default destructor for QgsServerParameterDefinition.  More... | |
| virtual bool | isValid () const | 
| Returns trueif the parameter is valid,falseotherwise.  More... | |
| QString | loadUrl (bool &ok) const | 
| Loads the data associated to the parameter converted into an url.  More... | |
| bool | toBool () const | 
| Converts the parameter into a boolean.  More... | |
| QColor | toColor (bool &ok) const | 
| Converts the parameter into a color.  More... | |
| QList< QColor > | toColorList (bool &ok, char delimiter=',') const | 
| Converts the parameter into a list of colors.  More... | |
| double | toDouble (bool &ok) const | 
| Converts the parameter into a double.  More... | |
| QList< double > | toDoubleList (bool &ok, char delimiter=',') const | 
| Converts the parameter into a list of doubles.  More... | |
| QList< QgsGeometry > | toGeomList (bool &ok, char delimiter=',') const | 
| Converts the parameter into a list of geometries.  More... | |
| int | toInt (bool &ok) const | 
| Converts the parameter into an integer.  More... | |
| QList< int > | toIntList (bool &ok, char delimiter=',') const | 
| Converts the parameter into a list of integers.  More... | |
| QgsRectangle | toRectangle (bool &ok) const | 
| Converts the parameter into a rectangle.  More... | |
| QString | toString (bool defaultValue=false) const | 
| Converts the parameter into a string.  More... | |
| QStringList | toStringList (char delimiter=',', bool skipEmptyParts=true) const | 
| Converts the parameter into a list of strings.  More... | |
| QUrl | toUrl (bool &ok) const | 
| Converts the parameter into an url.  More... | |
| QString | typeName () const | 
| Returns the type of the parameter as a string.  More... | |
| Static Public Member Functions | |
| static QString | name (const QgsServerParameter::Name name) | 
| Converts a parameter's name into its string representation.  More... | |
| static QgsServerParameter::Name | name (const QString &name) | 
| Converts a string into a parameter's name (UNKNOWN in case of an invalid string).  More... | |
|  Static Public Member Functions inherited from QgsServerParameterDefinition | |
| static void | raiseError (const QString &msg) | 
| Raises an exception in case of an invalid parameters.  More... | |
| Public Attributes | |
| QgsServerParameter::Name | mName | 
|  Public Attributes inherited from QgsServerParameterDefinition | |
| QVariant | mDefaultValue | 
| QVariant::Type | mType | 
| QVariant | mValue | 
Parameter common to all services (WMS, WFS, ...)
Definition at line 175 of file qgsserverparameters.h.
Parameter's name common to all services.
| Enumerator | |
|---|---|
| UNKNOWN | |
| SERVICE | |
| VERSION_SERVICE | |
| REQUEST | |
| MAP | |
| FILE_NAME | |
Definition at line 181 of file qgsserverparameters.h.
| QgsServerParameter::QgsServerParameter | ( | const QgsServerParameter::Name | name = QgsServerParameter::UNKNOWN, | 
| const QVariant::Type | type = QVariant::String, | ||
| const QVariant | defaultValue = QVariant( "" ) | ||
| ) | 
Constructor for QgsServerParameter.
| name | The name of the parameter | 
| type | The type of the parameter | 
| defaultValue | The default value to use if not defined | 
Definition at line 368 of file qgsserverparameters.cpp.
| 
 | static | 
Converts a parameter's name into its string representation.
Definition at line 375 of file qgsserverparameters.cpp.
| 
 | static | 
Converts a string into a parameter's name (UNKNOWN in case of an invalid string).
Definition at line 388 of file qgsserverparameters.cpp.
| void QgsServerParameter::raiseError | ( | ) | const | 
Raises an error in case of an invalid conversion.
| QgsBadRequestException | Invalid parameter exception | 
Definition at line 401 of file qgsserverparameters.cpp.
| QgsServerParameter::Name QgsServerParameter::mName | 
Definition at line 219 of file qgsserverparameters.h.