QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Public Member Functions | List of all members
QgsStoreBadLayerInfo Class Reference

Stores layer ids of bad layers. More...

#include <qgsstorebadlayerinfo.h>

Inheritance diagram for QgsStoreBadLayerInfo:
Inheritance graph

Public Member Functions

 QgsStoreBadLayerInfo ()=default
 Default constructor. More...
QMap< QString, QString > badLayerNames () const
 Returns names of bad layers with ids. More...
QStringList badLayers () const
 badLayers More...
void handleBadLayers (const QList< QDomNode > &layers)
 handleBadLayers More...
- Public Member Functions inherited from QgsProjectBadLayerHandler
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. More...

Additional Inherited Members

- Protected Types inherited from QgsProjectBadLayerHandler
enum  DataType { IS_VECTOR , IS_RASTER , IS_BOGUS }
 file data representation More...
enum  ProviderType { IS_FILE , IS_DATABASE , IS_URL , IS_Unknown }
 the flavors for data storage More...
- Protected Member Functions inherited from QgsProjectBadLayerHandler
QString dataSource (const QDomNode &layerNode)
 Returns the data source for the given layer. More...
DataType dataType (const QDomNode &layerNode)
 Returns data type associated with the given QgsProject file Dom node. More...
ProviderType providerType (const QDomNode &layerNode)
 Returns the physical storage type associated with the given layer. More...
void setDataSource (QDomNode &layerNode, const QString &dataSource)
 Set the datasource element to the new value. More...

Detailed Description

Stores layer ids of bad layers.

QGIS 3.6

Definition at line 31 of file qgsstorebadlayerinfo.h.

Constructor & Destructor Documentation

◆ QgsStoreBadLayerInfo()

QgsStoreBadLayerInfo::QgsStoreBadLayerInfo ( )

Default constructor.

Member Function Documentation

◆ badLayerNames()

QMap< QString, QString > QgsStoreBadLayerInfo::badLayerNames ( ) const

Returns names of bad layers with ids.

QGIS 3.12

Definition at line 56 of file qgsstorebadlayerinfo.h.

◆ badLayers()

QStringList QgsStoreBadLayerInfo::badLayers ( ) const


ids of bad layers

Definition at line 50 of file qgsstorebadlayerinfo.h.

◆ handleBadLayers()

void QgsStoreBadLayerInfo::handleBadLayers ( const QList< QDomNode > &  layers)


layerslayer nodes

Reimplemented from QgsProjectBadLayerHandler.

Definition at line 21 of file qgsstorebadlayerinfo.cpp.

The documentation for this class was generated from the following files: