2017-06-26 09:57:09 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/server/qgsserver.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-05-29 10:19:51 +02:00
|
|
|
class QgsServer
|
|
|
|
{
|
2017-06-26 09:57:09 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
The QgsServer class provides OGC web services.
|
2017-06-26 09:57:09 +02:00
|
|
|
%End
|
|
|
|
|
2015-05-29 10:19:51 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsserver.h"
|
|
|
|
%End
|
|
|
|
public:
|
2017-06-26 09:57:09 +02:00
|
|
|
|
2017-01-04 01:13:14 +01:00
|
|
|
QgsServer();
|
2017-06-26 09:57:09 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Creates the server instance
|
2017-06-26 09:57:09 +02:00
|
|
|
%End
|
2016-01-07 10:48:58 +01:00
|
|
|
|
|
|
|
void putenv( const QString &var, const QString &val );
|
2017-06-26 09:57:09 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Set environment variable
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param var: environment variable name
|
|
|
|
:param val: value
|
|
|
|
|
2017-06-26 09:57:09 +02:00
|
|
|
.. versionadded:: 2.14
|
|
|
|
%End
|
2016-01-07 10:48:58 +01:00
|
|
|
|
2017-10-19 15:22:57 +02:00
|
|
|
void handleRequest( QgsServerRequest &request, QgsServerResponse &response, const QgsProject *project = 0 );
|
2017-06-26 09:57:09 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Handles the request.
|
|
|
|
The query string is normally read from environment
|
|
|
|
but can be also passed in args and in this case overrides the environment
|
|
|
|
variable
|
|
|
|
|
|
|
|
:param request: a QgsServerRequest holding request parameters
|
|
|
|
:param response: a QgsServerResponse for handling response I/O)
|
|
|
|
:param project: a QgsProject or None, if it is None the project
|
2018-05-27 16:33:02 +10:00
|
|
|
is created from the MAP param specified in request or from
|
2018-05-24 21:21:14 +10:00
|
|
|
the QGIS_PROJECT_FILE setting
|
2017-06-26 09:57:09 +02:00
|
|
|
%End
|
2016-02-14 03:50:23 +01:00
|
|
|
|
2017-06-26 09:57:09 +02:00
|
|
|
|
|
|
|
QgsServerInterface *serverInterface();
|
|
|
|
%Docstring
|
|
|
|
Returns a pointer to the server interface
|
|
|
|
%End
|
|
|
|
|
2017-10-05 11:51:04 +10:00
|
|
|
|
2017-07-19 09:19:37 +02:00
|
|
|
void initPython();
|
2017-06-26 09:57:09 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Initialize Python
|
|
|
|
Note: not in Python bindings
|
2017-06-26 09:57:09 +02:00
|
|
|
%End
|
2015-05-29 10:19:51 +02:00
|
|
|
|
|
|
|
private:
|
2017-06-26 09:57:09 +02:00
|
|
|
QgsServer( const QgsServer & );
|
|
|
|
QgsServer &operator=( const QgsServer & );
|
2015-05-29 10:19:51 +02:00
|
|
|
};
|
2017-06-26 09:57:09 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/server/qgsserver.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|