QGIS API Documentation
3.6.0-Noosa (5873452)
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 :
[email protected]
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 Sat Feb 23 2019 03:59:22 for QGIS API Documentation by
1.8.13