QGIS/python/server/auto_generated/qgsserverinterface.sip.in

133 lines
3.7 KiB
Plaintext
Raw Normal View History

2017-06-26 09:57:09 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserverinterface.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2014-10-09 15:05:19 +02:00
2014-10-09 15:05:19 +02:00
class QgsServerInterface
{
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
QgsServerInterface
Class defining interfaces exposed by QGIS Server and
made available to plugins.
This class provides methods to access the request handler and
the capabilities cache. A method to read the environment
variables set in the main FCGI loop is also available.
Plugins can add listeners (instances of QgsServerFilter) with
a certain priority through the registerFilter( QgsServerFilter* , int) method.
2017-06-26 09:57:09 +02:00
%End
2014-10-09 15:05:19 +02:00
%TypeHeaderCode
2016-12-16 17:01:48 +01:00
#include "qgsserverinterface.h"
2014-10-09 15:05:19 +02:00
%End
public:
2017-06-26 09:57:09 +02:00
virtual ~QgsServerInterface();
virtual QgsCapabilitiesCache *capabilitiesCache() = 0 /KeepReference/;
%Docstring
2017-12-15 10:36:55 -04:00
Get pointer to the capabiblities cache
2017-12-19 11:43:52 -04:00
:return: :py:class:`QgsCapabilitiesCache`
2017-06-26 09:57:09 +02:00
%End
virtual QgsRequestHandler *requestHandler() = 0 /KeepReference/;
%Docstring
2017-12-15 10:36:55 -04:00
Get pointer to the request handler
2017-12-19 11:43:52 -04:00
:return: :py:class:`QgsRequestHandler`
2017-06-26 09:57:09 +02:00
%End
virtual void registerFilter( QgsServerFilter *filter /Transfer/, int priority = 0 ) = 0;
%Docstring
2017-12-19 11:43:52 -04:00
Register a :py:class:`QgsServerFilter`
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param filter: the QgsServerFilter to add
:param priority: an optional priority for the filter order
2017-06-26 09:57:09 +02:00
%End
virtual void setFilters( QgsServerFiltersMap *filters /Transfer/ ) = 0;
%Docstring
2017-12-15 10:36:55 -04:00
Set the filters map
2017-12-15 21:36:08 -04:00
2017-12-19 11:43:52 -04:00
:param filters: the :py:class:`QgsServerFiltersMap`
2017-06-26 09:57:09 +02:00
%End
2016-10-01 11:23:26 +02:00
virtual QgsServerFiltersMap filters() = 0;
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-19 11:43:52 -04:00
Return the list of current :py:class:`QgsServerFilter`
2017-12-15 10:36:55 -04:00
2017-12-19 11:43:52 -04:00
:return: QgsServerFiltersMap list of :py:class:`QgsServerFilter`
2017-06-26 09:57:09 +02:00
%End
2016-10-01 11:23:26 +02:00
2017-06-26 09:57:09 +02:00
virtual void registerAccessControl( QgsAccessControlFilter *accessControl /Transfer/, int priority = 0 ) = 0;
%Docstring
2017-12-15 10:36:55 -04:00
Register an access control filter
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param accessControl: the access control to register
:param priority: the priority used to order them
2017-06-26 09:57:09 +02:00
%End
2016-10-01 11:23:26 +02:00
2017-06-26 09:57:09 +02:00
virtual QgsAccessControl *accessControls() const = 0;
%Docstring
Gets the registered access control filters
%End
2016-10-01 11:23:26 +02:00
virtual QString getEnv( const QString &name ) const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
Return an enrironment variable, used to pass environment variables to Python
%End
2016-10-01 11:23:26 +02:00
2016-02-14 03:50:23 +01:00
virtual QString configFilePath() = 0;
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Return the configuration file path
:return: QString containing the configuration file path
2017-06-26 09:57:09 +02:00
%End
2016-10-01 11:23:26 +02:00
virtual void setConfigFilePath( const QString &configFilePath ) = 0;
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Set the configuration file path
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param configFilePath: QString with the configuration file path
2017-06-26 09:57:09 +02:00
%End
2016-10-01 11:23:26 +02:00
virtual void removeConfigCacheEntry( const QString &path ) = 0;
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Remove entry from config cache
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param path: the path of the file to remove
2017-06-26 09:57:09 +02:00
%End
virtual QgsServiceRegistry *serviceRegistry() = 0 /KeepReference/;
%Docstring
2017-12-15 10:36:55 -04:00
Return the service registry
2017-12-19 11:43:52 -04:00
:return: :py:class:`QgsServiceResgistry`
2017-06-26 09:57:09 +02:00
%End
2014-10-09 15:05:19 +02:00
2016-10-01 11:23:26 +02:00
private:
2016-02-14 03:50:23 +01:00
QgsServerInterface();
2014-10-09 15:05:19 +02:00
};
2017-06-26 09:57:09 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserverinterface.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/