QGIS API Documentation
3.10.0-A Coruña (6c816b4204)
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
u
v
w
z
+
Variables
a
b
c
d
e
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
core
qgsprojectbadlayerhandler.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsprojectbadlayerhandler.h - QgsProjectBadLayerHandler
3
4
---------------------
5
begin : 22.10.2016
6
copyright : (C) 2016 by Matthias Kuhn
7
email : matthias@opengis.ch
8
***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
#ifndef QGSPROJECTBADLAYERHANDLER_H
17
#define QGSPROJECTBADLAYERHANDLER_H
18
19
#include <QDomNode>
20
21
#include "qgis_core.h"
22
27
class
CORE_EXPORT
QgsProjectBadLayerHandler
28
{
29
public
:
30
42
virtual
void
handleBadLayers(
const
QList<QDomNode> &layers );
43
virtual
~
QgsProjectBadLayerHandler
() =
default
;
44
45
46
protected
:
47
49
enum
DataType
50
{
51
IS_VECTOR
,
52
IS_RASTER
,
53
IS_BOGUS
54
};
55
57
enum
ProviderType
58
{
59
IS_FILE
,
60
IS_DATABASE
,
61
IS_URL
,
62
IS_Unknown
63
};
64
65
73
DataType
dataType(
const
QDomNode &layerNode );
74
84
QString dataSource(
const
QDomNode &layerNode );
85
102
ProviderType
providerType(
const
QDomNode &layerNode );
103
109
void
setDataSource( QDomNode &layerNode,
const
QString &dataSource );
110
};
111
112
#endif // QGSPROJECTBADLAYERHANDLER_H
QgsProjectBadLayerHandler::DataType
DataType
file data representation
Definition:
qgsprojectbadlayerhandler.h:49
QgsProjectBadLayerHandler::IS_URL
Retrieved from a URL.
Definition:
qgsprojectbadlayerhandler.h:61
QgsProjectBadLayerHandler::IS_DATABASE
Saved in a database.
Definition:
qgsprojectbadlayerhandler.h:60
QgsProjectBadLayerHandler::ProviderType
ProviderType
the flavors for data storage
Definition:
qgsprojectbadlayerhandler.h:57
QgsProjectBadLayerHandler::IS_RASTER
Raster data.
Definition:
qgsprojectbadlayerhandler.h:52
QgsProjectBadLayerHandler::IS_VECTOR
Vector data.
Definition:
qgsprojectbadlayerhandler.h:51
QgsProjectBadLayerHandler::IS_FILE
Saved in a file.
Definition:
qgsprojectbadlayerhandler.h:59
QgsProjectBadLayerHandler
Interface for classes that handle missing layer files when reading project file.
Definition:
qgsprojectbadlayerhandler.h:27
Generated on Sun Oct 27 2019 00:43:28 for QGIS API Documentation by
1.8.13