QGIS/python/server/qgsserverfilter.sip

68 lines
2.8 KiB
Plaintext
Raw Normal View History

2014-10-09 15:05:19 +02:00
/***************************************************************************
qgsseerverfilter.h
2014-11-16 10:23:38 +01:00
Server I/O filters class for Qgis Mapserver for use by plugins
-------------------
2014-10-09 15:05:19 +02:00
begin : 2014-09-10
copyright : (C) 2014 by Alessandro Pasotti
email : a dot pasotti at itopen dot it
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
/**
2014-10-10 19:28:20 +02:00
* \class QgsServerFilter
* \brief Class defining I/O filters for Qgis Mapserver and
* implemented in plugins.
2014-10-09 15:05:19 +02:00
*
2014-10-10 19:28:20 +02:00
* Filters can define any (or none) of the following hooks:
* * requestReady() - called when request is ready
2014-11-16 10:23:38 +01:00
* * responseComplete() - called when the response is complete
* after core services have returned to main loop
* * sendResponse() - called just before sending output to FGCI
2014-10-09 15:05:19 +02:00
*/
class QgsServerFilter
{
%TypeHeaderCode
#include "qgsserverfilter.h"
#include "qgsserverinterface.h"
%End
public:
2014-10-10 19:28:20 +02:00
/** Constructor
* QgsServerInterface passed to plugins constructors
* and must be passed to QgsServerFilter instances.
*/
QgsServerFilter( QgsServerInterface* serverInterface);
2014-10-09 15:05:19 +02:00
/** Destructor */
virtual ~QgsServerFilter();
2014-10-10 19:28:20 +02:00
/** Return the QgsServerInterface instance*/
2014-10-09 15:05:19 +02:00
QgsServerInterface* serverInterface( );
2014-10-10 19:28:20 +02:00
/** Method called when the QgsRequestHandler is ready and populated with
* parameters, just before entering the main switch for core services.*/
2014-10-09 15:05:19 +02:00
virtual void requestReady();
2014-10-10 19:28:20 +02:00
/** Method called when the QgsRequestHandler processing has done and
* the response is ready, just after the main switch for core services
* and before final sending response to FCGI stdout.
2014-10-10 19:28:20 +02:00
*/
virtual void responseComplete();
/** Method called when the QgsRequestHandler sends its data to FCGI stdout.
* This normally occours at the end of core services processing just after
* the responseComplete() plugin hook. For streaming services (like WFS on
* getFeature requests, sendResponse() might have been called several times
* before the response is complete: in this particular case, sendResponse()
* is called once for each feature before hitting responseComplete()
*/
virtual void sendResponse();
2014-10-09 15:05:19 +02:00
};