QGIS API Documentation 3.38.0-Grenoble (exported)
Loading...
Searching...
No Matches
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
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
28{
29 public:
30
41 virtual void handleBadLayers( const QList<QDomNode> &layers );
42 virtual ~QgsProjectBadLayerHandler() = default;
43
44
45 protected:
46
49 {
52 IS_BOGUS
53 };
54
57 {
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
Interface for classes that handle missing layer files when reading project file.
ProviderType
the flavors for data storage
virtual ~QgsProjectBadLayerHandler()=default