QGIS API Documentation  3.4.15-Madeira (e83d02e274)
qgsstorebadlayerinfo.h
Go to the documentation of this file.
1 /***************************************************************************
2  * *
3  * This program is free software; you can redistribute it and/or modify *
4  * it under the terms of the GNU General Public License as published by *
5  * the Free Software Foundation; either version 2 of the License, or *
6  * (at your option) any later version. *
7  * *
8  ***************************************************************************/
9 
10 #ifndef QGSSTOREBADLAYERINFO_H
11 #define QGSSTOREBADLAYERINFO_H
12 
14 #include "qgis_server.h"
15 #include <QStringList>
16 
23 {
24  public:
25 
29  QgsStoreBadLayerInfo() = default;
30 
35  void handleBadLayers( const QList<QDomNode> &layers );
36 
41  QStringList badLayers() const { return mBadLayerIds; }
42 
43  private:
44  QStringList mBadLayerIds;
45 };
46 
47 #endif // QGSSTOREBADLAYERINFO_H
Stores layer ids of bad layers.
virtual void handleBadLayers(const QList< QDomNode > &layers)
This method will be called whenever the project tries to load layers which cannot be accessed...
QStringList badLayers() const
badLayers
Interface for classes that handle missing layer files when reading project file.