19 #ifndef QGSSERVICEREGISTRY_H
20 #define QGSSERVICEREGISTRY_H
22 #include "qgsconfig.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;