QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
qgsserverfilter.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsserverfilter.h
3 Server I/O filters class for QGIS Server for use by plugins
4 -------------------
5 begin : 2014-09-10
6 copyright : (C) 2014 by Alessandro Pasotti
7 email : a dot pasotti at itopen dot it
8 ***************************************************************************/
9
10/***************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 ***************************************************************************/
18
19
20#ifndef QGSSERVERFILTER_H
21#define QGSSERVERFILTER_H
22
23#include <QMultiMap>
24#include "qgis_server.h"
25#include "qgis_sip.h"
26
27SIP_IF_MODULE( HAVE_SERVER_PYTHON_PLUGINS )
28
30
43class SERVER_EXPORT QgsServerFilter
44{
45 public:
51 QgsServerFilter( QgsServerInterface *serverInterface );
52
53 virtual ~QgsServerFilter() = default;
54
56 QgsServerInterface *serverInterface() { return mServerInterface; }
57
67 Q_DECL_DEPRECATED virtual void requestReady() SIP_DEPRECATED;
68
79 Q_DECL_DEPRECATED virtual void responseComplete() SIP_DEPRECATED;
80
94 Q_DECL_DEPRECATED virtual void sendResponse() SIP_DEPRECATED;
95
104 virtual bool onRequestReady();
105
114 virtual bool onProjectReady();
115
125 virtual bool onResponseComplete();
126
139 virtual bool onSendResponse();
140
141
142 private:
143 QgsServerInterface *mServerInterface = nullptr;
144};
145
146typedef QMultiMap<int, QgsServerFilter *> QgsServerFiltersMap;
147
148#endif // QGSSERVERFILTER_H
Class defining I/O filters for QGIS Server and implemented in plugins.
QgsServerInterface * serverInterface()
Returns the QgsServerInterface instance.
virtual ~QgsServerFilter()=default
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins.
#define SIP_IF_MODULE(condition)
Definition qgis_sip.h:28
#define SIP_DEPRECATED
Definition qgis_sip.h:106
QMultiMap< int, QgsServerFilter * > QgsServerFiltersMap