QGIS API Documentation
3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
src
core
project
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
41
virtual
void
handleBadLayers(
const
QList<QDomNode> &layers );
42
virtual
~QgsProjectBadLayerHandler
() =
default
;
43
44
45
protected
:
46
48
enum
DataType
49
{
50
IS_VECTOR
,
51
IS_RASTER
,
52
IS_BOGUS
53
};
54
56
enum
ProviderType
57
{
58
IS_FILE
,
59
IS_DATABASE
,
60
IS_URL
,
61
IS_Unknown
62
};
63
64
71
DataType dataType(
const
QDomNode &layerNode );
72
81
QString dataSource(
const
QDomNode &layerNode );
82
98
ProviderType providerType(
const
QDomNode &layerNode );
99
104
void
setDataSource( QDomNode &layerNode,
const
QString &dataSource );
105
};
106
107
#endif
// QGSPROJECTBADLAYERHANDLER_H
QgsProjectBadLayerHandler
Interface for classes that handle missing layer files when reading project file.
Definition
qgsprojectbadlayerhandler.h:28
QgsProjectBadLayerHandler::ProviderType
ProviderType
the flavors for data storage
Definition
qgsprojectbadlayerhandler.h:57
QgsProjectBadLayerHandler::IS_FILE
@ IS_FILE
Saved in a file.
Definition
qgsprojectbadlayerhandler.h:58
QgsProjectBadLayerHandler::IS_DATABASE
@ IS_DATABASE
Saved in a database.
Definition
qgsprojectbadlayerhandler.h:59
QgsProjectBadLayerHandler::IS_URL
@ IS_URL
Retrieved from a URL.
Definition
qgsprojectbadlayerhandler.h:60
QgsProjectBadLayerHandler::~QgsProjectBadLayerHandler
virtual ~QgsProjectBadLayerHandler()=default
QgsProjectBadLayerHandler::DataType
DataType
file data representation
Definition
qgsprojectbadlayerhandler.h:49
QgsProjectBadLayerHandler::IS_VECTOR
@ IS_VECTOR
Vector data.
Definition
qgsprojectbadlayerhandler.h:50
QgsProjectBadLayerHandler::IS_RASTER
@ IS_RASTER
Raster data.
Definition
qgsprojectbadlayerhandler.h:51
Generated on Sat Nov 23 2024 09:26:05 for QGIS API Documentation by
1.9.8