/
qgsserverplugins.h
56 lines (46 loc) · 1.91 KB
/
qgsserverplugins.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/***************************************************************************
qgsserverplugins.h
-------------------------
begin : August 28, 2014
copyright : (C) 2014 by Alessandro Pasotti - ItOpen
email : apasotti at gmail 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. *
* *
***************************************************************************/
#ifndef QGSSERVERPLUGINS_H
#define QGSSERVERPLUGINS_H
#define SIP_NO_FILE
#include "qgsrequesthandler.h"
#include "qgsserverinterface.h"
// This is needed by SIP otherwise it doesn't find QgsPythonUtils header
class QgsPythonUtils;
/**
* \ingroup server
* \brief Initializes Python server plugins and stores a list of server plugin names
* \since QGIS 2.8
*/
class SERVER_EXPORT QgsServerPlugins
{
public:
/**
* Default constructor for QgsServerPlugins.
*/
explicit QgsServerPlugins() = default;
/**
* Initializes the Python plugins
* \param interface QgsServerInterface
* \returns bool true on success
*/
static bool initPlugins( QgsServerInterface *interface );
//! List of available server plugin names
static QStringList &serverPlugins();
//! Pointer to QgsPythonUtils
static QgsPythonUtils *sPythonUtils;
};
#endif // QGSSERVERPLUGINS_H