19#ifndef QGSSERVICEREGISTRY_H
20#define QGSSERVICEREGISTRY_H
68 QgsService *getService(
const QString &name,
const QString &version = QString() );
101 int unregisterApi(
const QString &name,
const QString &version = QString() );
119 QgsServerApi *getApi(
const QString &name,
const QString &version = QString() );
131 int unregisterService(
const QString &name,
const QString &version = QString() );
138 void init(
const QString &nativeModulepath,
QgsServerInterface *serverIface =
nullptr );
149 typedef QHash<QString, std::shared_ptr<QgsService> > ServiceTable;
150 typedef QHash<QString, std::shared_ptr<QgsServerApi> > ApiTable;
151 typedef QHash<QString, QPair<QString, QString> > VersionTable;
155 ServiceTable mServices;
156 VersionTable mServiceVersions;
158 VersionTable mApiVersions;
Server generic API endpoint abstract base class.
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins.
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
Class defining the native service module loader for QGIS server services.
QgsServiceRegistry Class defining the registry manager for QGIS server services.
QgsServiceRegistry()=default
Constructor.
QgsService Class defining interfaces for QGIS server services.