QGIS API Documentation 3.99.0-Master (26c88405ac0)
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 "qgis_core.h"
20
21#include <QDomNode>
22
28{
29 public:
30
41 virtual void handleBadLayers( const QList<QDomNode> &layers );
42 virtual ~QgsProjectBadLayerHandler() = default;
43
44
45 protected:
46
54
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 files.
ProviderType
the flavors for data storage
virtual ~QgsProjectBadLayerHandler()=default
virtual void handleBadLayers(const QList< QDomNode > &layers)
This method will be called whenever the project tries to load layers which cannot be accessed.