QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
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
[legend]

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
 

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.

Since
QGIS 3.6

Definition at line 31 of file qgsstorebadlayerinfo.h.

Constructor & Destructor Documentation

◆ QgsStoreBadLayerInfo()

QgsStoreBadLayerInfo::QgsStoreBadLayerInfo ( )
default

Default constructor.

Member Function Documentation

◆ badLayerNames()

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

Returns names of bad layers with ids.

Since
QGIS 3.12

Definition at line 56 of file qgsstorebadlayerinfo.h.

◆ badLayers()

QStringList QgsStoreBadLayerInfo::badLayers ( ) const
inline

badLayers

Returns
ids of bad layers

Definition at line 50 of file qgsstorebadlayerinfo.h.

◆ handleBadLayers()

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

handleBadLayers

Parameters
layerslayer nodes

Reimplemented from QgsProjectBadLayerHandler.

Definition at line 21 of file qgsstorebadlayerinfo.cpp.


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