QGIS API Documentation  2.99.0-Master (c558d51)
qgsprojectbadlayerguihandler.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsprojectbadlayerguihandler.h - handle bad layers
3  ---------------------
4  begin : December 2009
5  copyright : (C) 2009 by Martin Dobias
6  email : wonder dot sk at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 #ifndef QGSPROJECTBADLAYERGUIHANDLER_H
16 #define QGSPROJECTBADLAYERGUIHANDLER_H
17 
19 #include <QObject>
20 
26 class GUI_EXPORT QgsProjectBadLayerGuiHandler : public QObject, public QgsProjectBadLayerHandler
27 {
28  Q_OBJECT
29 
30  public:
32 
33  virtual void handleBadLayers( const QList<QDomNode>& layers ) override;
34 
36  static bool mIgnore;
37 
38  protected:
40  bool findMissingFile( const QString& fileFilters, QDomNode& layerNode );
41 
55  bool findLayer( const QString& fileFilters, const QDomNode& constLayerNode );
56 
61  void findLayers( const QString& fileFilters, const QList<QDomNode>& layerNodes );
62 
63 };
64 
65 #endif // QGSPROJECTBADLAYERGUIHANDLER_H
static bool mIgnore
Flag to store the Ignore button press of MessageBox used by QgsLegend.
Handler for missing layers within project.
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.