2016-12-07 22:09:57 +01:00
|
|
|
/***************************************************************************
|
|
|
|
qgsservicemodule.h
|
|
|
|
|
|
|
|
Class defining the service module interface for QGIS server services.
|
|
|
|
-------------------
|
|
|
|
begin : 2016-12-05
|
|
|
|
copyright : (C) 2016 by David Marteau
|
|
|
|
email : david dot marteau at 3liz dot com
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \ingroup server
|
|
|
|
* QgsServiceModule
|
|
|
|
* Class defining the service module interface for QGIS server services
|
|
|
|
*
|
2016-12-14 21:46:00 +01:00
|
|
|
* This class acts as a service registrar for services.
|
2016-12-07 22:09:57 +01:00
|
|
|
*
|
2016-12-14 21:46:00 +01:00
|
|
|
* For dynamic modules, a QgsServiceModule instance is returned from the QGS_ServiceModule_Init() entry point
|
2016-12-07 22:09:57 +01:00
|
|
|
*/
|
|
|
|
class QgsServiceModule
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsservicemodule.h"
|
|
|
|
#include "qgsserviceregistry.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
//! Constructor
|
|
|
|
QgsServiceModule();
|
|
|
|
|
|
|
|
//! Destructor
|
|
|
|
virtual ~QgsServiceModule() = 0;
|
|
|
|
|
|
|
|
/**
|
2017-01-12 22:01:50 +01:00
|
|
|
* Ask module to register all provided services
|
2016-12-07 22:09:57 +01:00
|
|
|
* @param registry QgsServiceRegistry
|
|
|
|
*/
|
2016-12-31 14:01:16 +01:00
|
|
|
virtual void registerSelf( QgsServiceRegistry& registry,
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsServerInterface *serverIface = nullptr ) = 0;
|
2016-12-07 22:09:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|