QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
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#include <QMap>
25
32{
33 public:
38
43 void handleBadLayers( const QList<QDomNode> &layers );
44
49 QStringList badLayers() const { return mBadLayerIds; }
50
55 QMap<QString, QString> badLayerNames() const { return mBadLayerNames; }
56
57 private:
58 QStringList mBadLayerIds;
59 QMap<QString, QString> mBadLayerNames;
60};
61
62#endif // QGSSTOREBADLAYERINFO_H
Interface for classes that handle missing layer files when reading project file.
virtual void handleBadLayers(const QList< QDomNode > &layers)
This method will be called whenever the project tries to load layers which cannot be accessed.
Stores layer ids of bad layers.
QMap< QString, QString > badLayerNames() const
Returns names of bad layers with ids.
QStringList badLayers() const
badLayers
QgsStoreBadLayerInfo()=default
Default constructor.