QGIS/python/server/qgsserverinterface.sip

136 lines
4.0 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
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.
%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
Get pointer to the capabiblities cache
:return: QgsCapabilitiesCache
:rtype: QgsCapabilitiesCache
%End
virtual QgsRequestHandler *requestHandler() = 0 /KeepReference/;
%Docstring
Get pointer to the request handler
:return: QgsRequestHandler
:rtype: QgsRequestHandler
%End
virtual void registerFilter( QgsServerFilter *filter /Transfer/, int priority = 0 ) = 0;
%Docstring
Register a QgsServerFilter
\param filter the QgsServerFilter to add
\param priority an optional priority for the filter order
%End
virtual void setFilters( QgsServerFiltersMap *filters /Transfer/ ) = 0;
%Docstring
Set the filters map
\param filters the QgsServerFiltersMap
%End
2016-10-01 11:23:26 +02:00
virtual QgsServerFiltersMap filters() = 0;
2017-06-26 09:57:09 +02:00
%Docstring
Return the list of current QgsServerFilter
:return: QgsServerFiltersMap list of QgsServerFilter
:rtype: QgsServerFiltersMap
%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
Register an access control filter
\param accessControl the access control to register
\param priority the priority used to order them
%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
:rtype: QgsAccessControl
%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
:rtype: str
%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
Return the configuration file path
:return: QString containing the configuration file path
:rtype: str
%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
Set the configuration file path
\param configFilePath QString with the configuration file path
%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
Remove entry from config cache
\param path the path of the file to remove
%End
virtual void removeProjectLayers( const QString &path ) = 0;
2017-06-26 09:57:09 +02:00
%Docstring
Remove entries from layer cache
\param path the path of the project which own the layers to be removed
%End
virtual QgsServiceRegistry *serviceRegistry() = 0 /KeepReference/;
%Docstring
Return the service registry
:return: QgsServiceResgistry
:rtype: QgsServiceRegistry
%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 *
************************************************************************/