QGIS API Documentation  3.22.4-Białowieża (ce8e65e95e)
qgsservicemodule.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsservicemodule.h
3 
4  Class defining the service module interface for QGIS server services.
5  -------------------
6  begin : 2016-12-05
7  copyright : (C) 2016 by David Marteau
8  email : david dot marteau at 3liz dot com
9  ***************************************************************************/
10 
11 /***************************************************************************
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * *
18  ***************************************************************************/
19 
20 
21 #ifndef QGSSERVICEMODULE_H
22 #define QGSSERVICEMODULE_H
23 
24 #include "qgis_server.h"
25 
26 class QgsServiceRegistry;
27 class QgsServerInterface;
28 
41 class SERVER_EXPORT QgsServiceModule
42 {
43 
44  public:
45 
49  QgsServiceModule() = default;
50 
54  virtual ~QgsServiceModule() = default;
55 
61  virtual void registerSelf( QgsServiceRegistry &registry,
62  QgsServerInterface *serverIface = nullptr ) = 0;
63 };
64 
65 #endif
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins.
Class defining the service module interface for QGIS server services.
QgsServiceModule()=default
Default constructor for QgsServiceModule.
virtual ~QgsServiceModule()=default
Default destructor for QgsServiceModule.
virtual void registerSelf(QgsServiceRegistry &registry, QgsServerInterface *serverIface=nullptr)=0
Asks the module to register all provided services.
QgsServiceRegistry Class defining the registry manager for QGIS server services.