Skip to content

Commit

Permalink
Update doc for QgsServerParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Jul 23, 2018
1 parent 32256bc commit ffddc9a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions python/server/auto_generated/qgsserverparameters.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ Removes a parameter.
%End

void remove( QgsServerParameter::Name name );
%Docstring
Removes a parameter.

:param name: The name of the parameter

.. versionadded:: 3.4
%End

QString value( const QString &key ) const;
%Docstring
Expand Down Expand Up @@ -201,7 +208,12 @@ defined.
%End

protected:

virtual bool loadParameter( const QString &name, const QString &value );
%Docstring
Loads a parameter with a specific value. This method should be
implemented in subclasses.
%End


};
Expand Down
10 changes: 10 additions & 0 deletions src/server/qgsserverparameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ class SERVER_EXPORT QgsServerParameters
*/
void remove( const QString &key );

/**
* Removes a parameter.
* \param name The name of the parameter
* \since QGIS 3.4
*/
void remove( QgsServerParameter::Name name );

/**
Expand Down Expand Up @@ -185,6 +190,11 @@ class SERVER_EXPORT QgsServerParameters
QString version() const;

protected:

/**
* Loads a parameter with a specific value. This method should be
* implemented in subclasses.
*/
virtual bool loadParameter( const QString &name, const QString &value );

QMap<QString, QString> mUnmanagedParameters;
Expand Down

0 comments on commit ffddc9a

Please sign in to comment.