QGIS/python/server/qgsservicemodule.sip

52 lines
1.8 KiB
Plaintext
Raw Normal View History

/***************************************************************************
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-14 21:46:00 +01:00
* For dynamic modules, a QgsServiceModule instance is returned from the QGS_ServiceModule_Init() entry point
*/
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
* @param registry QgsServiceRegistry
*/
2016-12-31 14:01:16 +01:00
virtual void registerSelf( QgsServiceRegistry& registry,
QgsServerInterface *serverIface = nullptr ) = 0;
};