QGIS API Documentation  3.24.2-Tisler (13c1a02865)
qgsserverfilter.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  qgsseerverfilter.cpp
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 #include "qgsserverfilter.h"
21 #include "qgslogger.h"
22 #include "qgis.h"
23 
32  mServerInterface( serverInterface )
33 {
34 }
35 
37 {
38  QgsDebugMsg( QStringLiteral( "QgsServerFilter plugin default requestReady called" ) );
39 }
40 
42 {
43  QgsDebugMsg( QStringLiteral( "QgsServerFilter plugin default responseComplete called" ) );
44 }
45 
47 {
48  QgsDebugMsg( QStringLiteral( "QgsServerFilter plugin default sendResponse called" ) );
49 }
50 
52 {
54  requestReady();
56  return true;
57 }
58 
60 {
64  return true;
65 }
66 
68 {
70  sendResponse();
72  return true;
73 }
74 
75 
QgsServerFilter(QgsServerInterface *serverInterface)
Constructor QgsServerInterface passed to plugins constructors and must be passed to QgsServerFilter i...
virtual bool onSendResponse()
Method called when the QgsRequestHandler sends its data to FCGI stdout.
virtual Q_DECL_DEPRECATED void responseComplete()
Method called when the QgsRequestHandler processing has done and the response is ready,...
virtual Q_DECL_DEPRECATED void requestReady()
Method called when the QgsRequestHandler is ready and populated with parameters, just before entering...
virtual bool onRequestReady()
Method called when the QgsRequestHandler is ready and populated with parameters, just before entering...
virtual bool onResponseComplete()
Method called when the QgsRequestHandler processing has done and the response is ready,...
virtual Q_DECL_DEPRECATED void sendResponse()
Method called when the QgsRequestHandler sends its data to FCGI stdout.
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins.
#define Q_NOWARN_DEPRECATED_POP
Definition: qgis.h:2065
#define Q_NOWARN_DEPRECATED_PUSH
Definition: qgis.h:2064
#define QgsDebugMsg(str)
Definition: qgslogger.h:38