QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
qgsservice.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsservice.h
3
4 Class defining the service interface for QGIS server services.
5 -------------------
6 begin : 2016-12-05
7 copyright : (C) 2016 by David Marteau
8 email : david dot marteau at 3liz dot com
9 ***************************************************************************/
10
11/***************************************************************************
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * (at your option) any later version. *
17 * *
18 ***************************************************************************/
19
20
21#ifndef QGSSERVICECOMPONENT_H
22#define QGSSERVICECOMPONENT_H
23
24#include "qgsserverrequest.h"
25#include "qgsserverresponse.h"
26
27class QgsProject;
28
38class SERVER_EXPORT QgsService
39{
40#ifdef SIP_RUN
41#include "qgsserverrequest.h"
42#include "qgsserverresponse.h"
43#endif
44
45 public:
46
48 virtual ~QgsService() = default;
49
53 virtual QString name() const = 0;
54
58 virtual QString version() const = 0;
59
63 virtual void executeRequest( const QgsServerRequest &request,
64 QgsServerResponse &response,
65 const QgsProject *project ) = 0;
66};
67
68#endif
69
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition qgsproject.h:107
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
QgsServerResponse Class defining response interface passed to services QgsService::executeRequest() m...
QgsService Class defining interfaces for QGIS server services.
Definition qgsservice.h:39
virtual QString name() const =0
QgsService()
Constructor.
virtual ~QgsService()=default
virtual QString version() const =0
virtual void executeRequest(const QgsServerRequest &request, QgsServerResponse &response, const QgsProject *project)=0
Execute the requests and set result in QgsServerRequest.