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

101 lines
2.9 KiB
Plaintext
Raw Normal View History

2017-06-26 09:57:09 +02:00
/************************************************************************
* 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
{
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
QgsServiceRegistry
Class defining the registry manager for QGIS server services
2017-06-26 09:57:09 +02:00
2017-12-15 10:36:55 -04:00
This class provides methods for registering and retrieving
services.
2017-06-26 09:57:09 +02:00
2017-12-15 10:36:55 -04:00
IMPORTANT: The registry hold ownership of registered services and
will call 'delete' on cleanup
2017-06-26 09:57:09 +02:00
.. versionadded:: 3.0
%End
%TypeHeaderCode
#include "qgsserviceregistry.h"
%End
public:
QgsServiceRegistry();
2017-06-26 09:57:09 +02:00
%Docstring
Constructor
%End
2016-12-14 21:46:00 +01:00
~QgsServiceRegistry();
QgsService *getService( const QString &name, const QString &version = QString() );
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Retrieve a service from its name
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param name: the name of the service
:param version: the version string (optional)
2017-06-26 09:57:09 +02:00
2017-12-19 11:43:52 -04:00
:return: :py:class:`QgsService`
2017-12-15 10:36:55 -04:00
If the version is not provided the higher version of the service is returned
2017-06-26 09:57:09 +02:00
%End
void registerService( QgsService *service /Transfer/ );
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Register a service by its name and version
2017-06-26 09:57:09 +02:00
2017-12-15 10:36:55 -04:00
This method is intended to be called by modules for registering
services. A module may register multiple services.
2017-06-26 09:57:09 +02:00
2017-12-15 10:36:55 -04:00
The registry gain ownership of services and will call 'delete' on cleanup
2017-06-26 09:57:09 +02:00
:param service: a QgsService to be registered
2017-06-26 09:57:09 +02:00
%End
int unregisterService( const QString &name, const QString &version = QString() );
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Unregister service from its name and version
:param name: the tame of the service
:param version: (optional) the specific version to unload
:return: the number of services unregistered
2017-06-26 09:57:09 +02:00
2017-12-15 10:36:55 -04:00
If the version is not specified then all versions from the specified service
are unloaded
2017-06-26 09:57:09 +02:00
%End
void init( const QString &nativeModulepath, QgsServerInterface *serverIface = 0 );
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Initialize registry, load modules and auto register services
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param serverIface: the server interface
:param nativeModulepath: the native module path
2017-06-26 09:57:09 +02:00
%End
void cleanUp();
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Clean up registered service and unregister modules
2017-06-26 09:57:09 +02:00
%End
};
2017-06-26 09:57:09 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserviceregistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/