QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
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.
 
QMap< QString, QString > badLayerNames () const
 Returns names of bad layers with ids.
 
QStringList badLayers () const
 badLayers
 
void handleBadLayers (const QList< QDomNode > &layers)
 handleBadLayers
 
- 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.
 
DataType dataType (const QDomNode &layerNode)
 Returns data type associated with the given QgsProject file Dom node.
 
ProviderType providerType (const QDomNode &layerNode)
 Returns the physical storage type associated with the given layer.
 
void setDataSource (QDomNode &layerNode, const QString &dataSource)
 Set the datasource element to the new value.
 

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: