QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Public Member Functions | List of all members
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. More...
 
void addMetadata (const QgsLayerMetadataProviderResult &metadata)
 Adds a Metadata record to the list of results. More...
 
QStringList errors () const
 Returns the list of errors occurred during a metadata search. More...
 
QList< QgsLayerMetadataProviderResultmetadata () const
 Returns the list of metadata results. More...
 

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 176 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 37 of file qgsabstractlayermetadataprovider.cpp.

◆ addMetadata()

void QgsLayerMetadataSearchResults::addMetadata ( const QgsLayerMetadataProviderResult metadata)

Adds a Metadata record to the list of results.

Definition at line 26 of file qgsabstractlayermetadataprovider.cpp.

◆ errors()

QStringList QgsLayerMetadataSearchResults::errors ( ) const

Returns the list of errors occurred during a metadata search.

Definition at line 32 of file qgsabstractlayermetadataprovider.cpp.

◆ metadata()

QList< QgsLayerMetadataProviderResult > QgsLayerMetadataSearchResults::metadata ( ) const

Returns the list of metadata results.

Definition at line 21 of file qgsabstractlayermetadataprovider.cpp.


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