2017-06-26 09:57:09 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/server/qgsservice.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-12-07 22:09:57 +01:00
|
|
|
class QgsService
|
|
|
|
{
|
2017-06-26 09:57:09 +02:00
|
|
|
%Docstring
|
|
|
|
QgsService
|
|
|
|
Class defining interfaces for QGIS server services
|
|
|
|
|
|
|
|
This class provides methods for executing server requests
|
|
|
|
They are registered at runtime for a given service name.
|
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
2016-12-07 22:09:57 +01:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsservice.h"
|
|
|
|
#include "qgsserverrequest.h"
|
|
|
|
#include "qgsserverresponse.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsService();
|
2017-06-26 09:57:09 +02:00
|
|
|
%Docstring
|
|
|
|
Constructor
|
|
|
|
%End
|
2016-12-07 22:09:57 +01:00
|
|
|
|
|
|
|
virtual ~QgsService();
|
2017-06-26 09:57:09 +02:00
|
|
|
%Docstring
|
|
|
|
Destructor
|
|
|
|
%End
|
2016-12-07 22:09:57 +01:00
|
|
|
|
2016-12-14 13:44:57 +01:00
|
|
|
virtual QString name() const = 0;
|
2017-06-26 09:57:09 +02:00
|
|
|
%Docstring
|
|
|
|
:return: the name of the service
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2016-12-14 13:44:57 +01:00
|
|
|
|
|
|
|
virtual QString version() const = 0;
|
2017-06-26 09:57:09 +02:00
|
|
|
%Docstring
|
|
|
|
:return: the version of the service
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2016-12-14 13:44:57 +01:00
|
|
|
|
2016-12-07 22:09:57 +01:00
|
|
|
virtual bool allowMethod( QgsServerRequest::Method ) const = 0;
|
2017-06-26 09:57:09 +02:00
|
|
|
%Docstring
|
|
|
|
Return true if the given method is supported for that
|
|
|
|
service.
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
2016-12-07 22:09:57 +01:00
|
|
|
|
2017-06-26 09:57:09 +02:00
|
|
|
virtual void executeRequest( const QgsServerRequest &request,
|
|
|
|
QgsServerResponse &response,
|
2017-05-01 16:42:33 +02:00
|
|
|
const QgsProject *project ) = 0;
|
2017-06-26 09:57:09 +02:00
|
|
|
%Docstring
|
|
|
|
Execute the requests and set result in QgsServerRequest
|
|
|
|
%End
|
2016-12-07 22:09:57 +01:00
|
|
|
};
|
|
|
|
|
2017-06-26 09:57:09 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/server/qgsservice.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|