QGIS API Documentation
3.14.0-Pi (9f7028fd23)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Functions
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
server
qgsserverapi.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsserverapi.cpp
3
4
Class defining the service interface for QGIS server APIs.
5
-------------------
6
begin : 2019-04-16
7
copyright : (C) 2019 by Alessandro Pasotti
8
email : elpaso at itopen dot it
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
22
#include "
qgsserverapi.h
"
23
24
QgsServerApi::QgsServerApi
(
QgsServerInterface
*serverIface )
25
: mServerIface( serverIface )
26
{
27
}
28
29
bool
QgsServerApi::accept
(
const
QUrl &url )
const
30
{
31
return
url.path().contains(
rootPath
() );
32
}
33
34
QgsServerInterface
*
QgsServerApi::serverIface
()
const
35
{
36
return
mServerIface;
37
}
QgsServerApi::serverIface
QgsServerInterface * serverIface() const
Returns the server interface.
Definition:
qgsserverapi.cpp:34
QgsServerApi::rootPath
virtual const QString rootPath() const =0
Returns the root path for the API.
qgsserverapi.h
QgsServerApi::accept
virtual bool accept(const QUrl &url) const
Returns true if the given url is handled by the API, default implementation checks for the presence o...
Definition:
qgsserverapi.cpp:29
QgsServerInterface
Definition:
qgsserverinterface.h:60
QgsServerApi::QgsServerApi
QgsServerApi(QgsServerInterface *serverIface)
Creates a QgsServerApi object.
Definition:
qgsserverapi.cpp:24
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17