QGIS API Documentation 3.99.0-Master (2fe06baccd8)
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 "qgis_server.h"
24#include "qgis_sip.h"
25
26#include <QMultiMap>
27
28SIP_IF_MODULE( HAVE_SERVER_PYTHON_PLUGINS )
29
31
39class SERVER_EXPORT QgsServerFilter
40{
41 public:
48
49 virtual ~QgsServerFilter() = default;
50
52 QgsServerInterface *serverInterface() { return mServerInterface; }
53
63 Q_DECL_DEPRECATED virtual void requestReady() SIP_DEPRECATED;
64
75 Q_DECL_DEPRECATED virtual void responseComplete() SIP_DEPRECATED;
76
90 Q_DECL_DEPRECATED virtual void sendResponse() SIP_DEPRECATED;
91
100 virtual bool onRequestReady();
101
110 virtual bool onProjectReady();
111
121 virtual bool onResponseComplete();
122
135 virtual bool onSendResponse();
136
137
138 private:
139 QgsServerInterface *mServerInterface = nullptr;
140};
141
142typedef QMultiMap<int, QgsServerFilter *> QgsServerFiltersMap;
143
144#endif // QGSSERVERFILTER_H
Defines I/O filters for QGIS Server and implemented in plugins.
QgsServerFilter(QgsServerInterface *serverInterface)
Constructor QgsServerInterface passed to plugins constructors and must be passed to QgsServerFilter i...
QgsServerInterface * serverInterface()
Returns the QgsServerInterface instance.
virtual ~QgsServerFilter()=default
Defines 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:114
QMultiMap< int, QgsServerFilter * > QgsServerFiltersMap