QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsLayerMetadataSearchResults Class Reference

Container of result records from a layer metadata search. More...

#include <qgsabstractlayermetadataprovider.h>

Public Member Functions

void addError (const QString &error)
 Adds a error to the list of errors.
void addMetadata (const QgsLayerMetadataProviderResult &metadata)
 Adds a Metadata record to the list of results.
QStringList errors () const
 Returns the list of errors occurred during a metadata search.
QList< QgsLayerMetadataProviderResultmetadata () const
 Returns the list of metadata results.

Detailed Description

Container of result records from a layer metadata search.

Contains the records of the layer metadata provider that matched the search criteria and the list of the errors that occurred while searching for metadata.

Since
QGIS 3.28

Definition at line 172 of file qgsabstractlayermetadataprovider.h.

Member Function Documentation

◆ addError()

void QgsLayerMetadataSearchResults::addError ( const QString & error)

Adds a error to the list of errors.

Definition at line 38 of file qgsabstractlayermetadataprovider.cpp.

◆ addMetadata()

void QgsLayerMetadataSearchResults::addMetadata ( const QgsLayerMetadataProviderResult & metadata)

Adds a Metadata record to the list of results.

Definition at line 27 of file qgsabstractlayermetadataprovider.cpp.

◆ errors()

QStringList QgsLayerMetadataSearchResults::errors ( ) const

Returns the list of errors occurred during a metadata search.

Definition at line 33 of file qgsabstractlayermetadataprovider.cpp.

◆ metadata()

QList< QgsLayerMetadataProviderResult > QgsLayerMetadataSearchResults::metadata ( ) const

Returns the list of metadata results.

Definition at line 22 of file qgsabstractlayermetadataprovider.cpp.


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