Skip to content

Commit

Permalink
Update doc for QgsWmsParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Jul 23, 2018
1 parent 77af2ca commit 9e4c3f2
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions src/server/services/wms/qgswmsparameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@ namespace QgsWms
*/
QgsProjectVersion versionAsNumber() const;

/**
* Returns true if \a version is valid, false otherwise.
* \since QGIS 3.4
*/
bool versionIsValid( const QString version ) const;

/**
Expand Down Expand Up @@ -417,16 +421,46 @@ namespace QgsWms
*/
QList<QgsWmsParametersLayer> layersParameters() const;

/**
* Returns FI_POLYGON_TOLERANCE parameter or an empty string if not
* defined.
* \since QGIS 3.4
*/
QString polygonTolerance() const;

/**
* Returns FI_LINE_TOLERANCE parameter or an empty string if not
* defined.
* \since QGIS 3.4
*/
QString lineTolerance() const;

/**
* Returns FI_POINT_TOLERANCE parameter or an empty string if not
* defined.
* \since QGIS 3.4
*/
QString pointTolerance() const;

/**
* Returns FI_POLYGON_TOLERANCE parameter as an integer.
* \throws QgsBadRequestException
* \since QGIS 3.4
*/
int polygonToleranceAsInt() const;

/**
* Returns FI_LINE_TOLERANCE parameter as an integer.
* \throws QgsBadRequestException
* \since QGIS 3.4
*/
int lineToleranceAsInt() const;

/**
* Returns FI_POINT_TOLERANCE parameter as an integer.
* \throws QgsBadRequestException
* \since QGIS 3.4
*/
int pointToleranceAsInt() const;

/**
Expand Down Expand Up @@ -454,8 +488,18 @@ namespace QgsWms
*/
bool infoFormatIsImage() const;

/**
* Returns IMAGE_QUALITY parameter or an empty string if not
* defined.
* \since QGIS 3.4
*/
QString imageQuality() const;

/**
* Returns IMAGE_QUALITY parameter as an integer.
* \throws QgsBadRequestException
* \since QGIS 3.4
*/
int imageQualityAsInt() const;

/**
Expand Down Expand Up @@ -1054,8 +1098,19 @@ namespace QgsWms
*/
bool withMapTip() const;

/**
* Returns WMTVER parameter or an empty string if not defined.
* \since QGIS 3.4
*/
QString wmtver() const;

/**
* Returns a layout parameter thanks to its \a id.
* \param id Parameter id
* \param ok True if the parameter is valid, false otherwise
* \returns The layout parameter
* \since QGIS 3.4
*/
QString layoutParameter( const QString &id, bool &ok ) const;

private:
Expand Down

0 comments on commit 9e4c3f2

Please sign in to comment.