QGIS API Documentation 3.99.0-Master (26c88405ac0)
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:
42
49
50 virtual ~QgsServerFilter() = default;
51
53 QgsServerInterface *serverInterface() { return mServerInterface; }
54
64 Q_DECL_DEPRECATED virtual void requestReady() SIP_DEPRECATED;
65
76 Q_DECL_DEPRECATED virtual void responseComplete() SIP_DEPRECATED;
77
91 Q_DECL_DEPRECATED virtual void sendResponse() SIP_DEPRECATED;
92
101 virtual bool onRequestReady();
102
111 virtual bool onProjectReady();
112
122 virtual bool onResponseComplete();
123
136 virtual bool onSendResponse();
137
138
139 private:
140 QgsServerInterface *mServerInterface = nullptr;
141};
142
143typedef QMultiMap<int, QgsServerFilter *> QgsServerFiltersMap;
144
145#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