QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
Registry of layer metadata provider backends. More...
#include <qgslayermetadataproviderregistry.h>
Public Member Functions | |
QgsLayerMetadataProviderRegistry (QObject *parent=nullptr) | |
Creates the layer metadata provider registry, with an optional parent. | |
QgsAbstractLayerMetadataProvider * | layerMetadataProviderFromId (const QString &id) |
Returns metadata provider implementation if the id matches one. Returns nullptr otherwise. | |
QList< QgsAbstractLayerMetadataProvider * > | layerMetadataProviders () const |
Returns the list of all registered layer metadata providers. | |
void | registerLayerMetadataProvider (QgsAbstractLayerMetadataProvider *metadataProvider) |
Registers a layer metadata provider metadataProvider and takes ownership of it. | |
const QgsLayerMetadataSearchResults | search (const QgsMetadataSearchContext &searchContext, const QString &searchString=QString(), const QgsRectangle &geographicExtent=QgsRectangle(), QgsFeedback *feedback=nullptr) |
Search for layers in all the registered layer metadata providers, optionally filtering by searchString and geographicExtent, an optional feedback can be used to monitor and control the search process. | |
void | unregisterLayerMetadataProvider (QgsAbstractLayerMetadataProvider *metadataProvider) |
Unregisters a layer metadata provider metadataProvider and destroys its instance. | |
Registry of layer metadata provider backends.
This is a singleton that should be accessed through QgsApplication::layerMetadataProviderRegistry().
Definition at line 44 of file qgslayermetadataproviderregistry.h.
|
explicit |
Creates the layer metadata provider registry, with an optional parent.
Definition at line 20 of file qgslayermetadataproviderregistry.cpp.
QgsAbstractLayerMetadataProvider * QgsLayerMetadataProviderRegistry::layerMetadataProviderFromId | ( | const QString & | id | ) |
Returns metadata provider implementation if the id matches one. Returns nullptr
otherwise.
Definition at line 41 of file qgslayermetadataproviderregistry.cpp.
QList< QgsAbstractLayerMetadataProvider * > QgsLayerMetadataProviderRegistry::layerMetadataProviders | ( | ) | const |
Returns the list of all registered layer metadata providers.
Definition at line 36 of file qgslayermetadataproviderregistry.cpp.
void QgsLayerMetadataProviderRegistry::registerLayerMetadataProvider | ( | QgsAbstractLayerMetadataProvider * | metadataProvider | ) |
Registers a layer metadata provider metadataProvider and takes ownership of it.
Definition at line 26 of file qgslayermetadataproviderregistry.cpp.
const QgsLayerMetadataSearchResults QgsLayerMetadataProviderRegistry::search | ( | const QgsMetadataSearchContext & | searchContext, |
const QString & | searchString = QString() , |
||
const QgsRectangle & | geographicExtent = QgsRectangle() , |
||
QgsFeedback * | feedback = nullptr |
||
) |
Search for layers in all the registered layer metadata providers, optionally filtering by searchString and geographicExtent, an optional feedback can be used to monitor and control the search process.
Definition at line 46 of file qgslayermetadataproviderregistry.cpp.
void QgsLayerMetadataProviderRegistry::unregisterLayerMetadataProvider | ( | QgsAbstractLayerMetadataProvider * | metadataProvider | ) |
Unregisters a layer metadata provider metadataProvider and destroys its instance.
Definition at line 31 of file qgslayermetadataproviderregistry.cpp.