QgsSourceSelectProviderRegistry class

This class keeps a list of source select providers that may add items to the QgsDataSourceManagerDialog When created, it automatically adds providers from data provider plugins (e.g.

PostGIS, WMS, ...)

QgsSourceSelectProviderRegistry is not usually directly created, but rather accessed through QgsGui::sourceSelectProviderRegistry().

Constructors, destructors, conversion operators

QgsSourceSelectProviderRegistry() defaulted
Constructor for QgsSourceSelectProviderRegistry.
QgsSourceSelectProviderRegistry(const QgsSourceSelectProviderRegistry& rh) deleted
QgsDataItemProviderRegistry cannot be copied.

Public functions

void addProvider(QgsSourceSelectProvider* provider)
Add a provider implementation. Takes ownership of the object.
auto operator=(const QgsSourceSelectProviderRegistry& rh) -> QgsSourceSelectProviderRegistry& deleted
QgsDataItemProviderRegistry cannot be copied.
auto providerByName(const QString& name) -> QgsSourceSelectProvider*
Returns a provider by name or nullptr if not found.
auto providers() -> QList<QgsSourceSelectProvider*>
Gets list of available providers.
auto providersByKey(const QString& providerKey) -> QList<QgsSourceSelectProvider*>
Returns a (possibly empty) list of providers by data providerkey.
auto removeProvider(QgsSourceSelectProvider* provider) -> bool
Remove provider implementation from the list (provider object is deleted)

Function documentation

bool QgsSourceSelectProviderRegistry::removeProvider(QgsSourceSelectProvider* provider)

Remove provider implementation from the list (provider object is deleted)

Returns true if the provider was actually removed and deleted