QGIS API Documentation  3.10.0-A Coruña (6c816b4204)
qgsstorebadlayerinfo.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsstorebadlayerinfo.h
3  ----------------------
4  begin : Jan 2019
5  copyright : (C) 2019 by Marco Hugentobler
6  email : marco dot hugentobler at sourcepole dot ch
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSSTOREBADLAYERINFO_H
19 #define QGSSTOREBADLAYERINFO_H
20 
22 #include "qgis_server.h"
23 #include <QStringList>
24 
31 {
32  public:
33 
37  QgsStoreBadLayerInfo() = default;
38 
43  void handleBadLayers( const QList<QDomNode> &layers );
44 
49  QStringList badLayers() const { return mBadLayerIds; }
50 
51  private:
52  QStringList mBadLayerIds;
53 };
54 
55 #endif // QGSSTOREBADLAYERINFO_H
QStringList badLayers() const
badLayers
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...
Interface for classes that handle missing layer files when reading project file.