QGIS/python/server/auto_generated/qgsserviceregistry.sip.in
Alessandro Pasotti 92ac7a2e93
[server] Server api and WFS3 (#10016)
Implementation of OGC API and WFS3 core draft specification
2019-08-06 16:38:21 +02:00

140 lines
3.8 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserviceregistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsServiceRegistry
{
%Docstring
QgsServiceRegistry
Class defining the registry manager for QGIS server services
This class provides methods for registering and retrieving
services.
IMPORTANT: The registry hold ownership of registered services and
will call 'delete' on cleanup
.. versionadded:: 3.0
%End
%TypeHeaderCode
#include "qgsserviceregistry.h"
%End
public:
QgsServiceRegistry();
%Docstring
Constructor
%End
~QgsServiceRegistry();
QgsService *getService( const QString &name, const QString &version = QString() );
%Docstring
Retrieve a service from its name
:param name: the name of the service
:param version: the version string (optional)
:return: :py:class:`QgsService`
If the version is not provided the higher version of the service is returned
%End
void registerService( QgsService *service /Transfer/ );
%Docstring
Register a service by its name and version
This method is intended to be called by modules for registering
services. A module may register multiple services.
The registry takes ownership of services and will call 'delete' on cleanup
:param service: a QgsService to be registered
%End
bool registerApi( QgsServerApi *api /Transfer/ );
%Docstring
Registers the :py:class:`QgsServerApi` ``api``
The registry takes ownership of services and will call 'delete' on cleanup
.. versionadded:: 3.10
%End
int unregisterApi( const QString &name, const QString &version = QString() );
%Docstring
Unregisters API from its name and version
:param name: the name of the service
:param version: (optional) the specific version to unload
:return: the number of APIs unregistered
If the version is not specified then all versions from the specified API
are unloaded
.. versionadded:: 3.10
%End
QgsServerApi *getApi( const QString &name, const QString &version = QString() );
%Docstring
Retrieves an API from its name
If the version is not provided the higher version of the service is returned
:param name: the name of the API
:param version: the version string (optional)
:return: :py:class:`QgsServerApi`
.. versionadded:: 3.10
%End
int unregisterService( const QString &name, const QString &version = QString() );
%Docstring
Unregister service from its name and version
:param name: the name of the service
:param version: (optional) the specific version to unload
:return: the number of services unregistered
If the version is not specified then all versions from the specified service
are unloaded
%End
void init( const QString &nativeModulepath, QgsServerInterface *serverIface = 0 );
%Docstring
Initialize registry, load modules and auto register services
:param serverIface: the server interface
:param nativeModulepath: the native module path
%End
void cleanUp();
%Docstring
Clean up registered service and unregister modules
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserviceregistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/