QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
server
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
28
SIP_IF_MODULE
( HAVE_SERVER_PYTHON_PLUGINS )
29
30
class
QgsServerInterface
;
31
39
class
SERVER_EXPORT
QgsServerFilter
40
{
41
public
:
47
QgsServerFilter
(
QgsServerInterface
*
serverInterface
);
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
142
typedef QMultiMap<
int
,
QgsServerFilter
*>
QgsServerFiltersMap
;
143
144
#endif
// QGSSERVERFILTER_H
QgsServerFilter
Defines I/O filters for QGIS Server and implemented in plugins.
Definition
qgsserverfilter.h:40
QgsServerFilter::QgsServerFilter
QgsServerFilter(QgsServerInterface *serverInterface)
Constructor QgsServerInterface passed to plugins constructors and must be passed to QgsServerFilter i...
Definition
qgsserverfilter.cpp:36
QgsServerFilter::serverInterface
QgsServerInterface * serverInterface()
Returns the QgsServerInterface instance.
Definition
qgsserverfilter.h:52
QgsServerFilter::~QgsServerFilter
virtual ~QgsServerFilter()=default
QgsServerInterface
Defines interfaces exposed by QGIS Server and made available to plugins.
Definition
qgsserverinterface.h:61
qgis_sip.h
SIP_IF_MODULE
#define SIP_IF_MODULE(condition)
Definition
qgis_sip.h:27
SIP_DEPRECATED
#define SIP_DEPRECATED
Definition
qgis_sip.h:113
QgsServerFiltersMap
QMultiMap< int, QgsServerFilter * > QgsServerFiltersMap
Definition
qgsserverfilter.h:142
Generated on
for QGIS API Documentation by
1.17.0