Class: QgsDataItemProviderRegistry

class qgis.core.QgsDataItemProviderRegistry

Bases: sip.wrapper

This class keeps a list of data item providers that may add items to the browser tree. When created, it automatically adds providers from provider plugins (e.g. PostGIS, WMS, …)

QgsDataItemProviderRegistry is not usually directly created, but rather accessed through QgsApplication.dataItemProviderRegistry()

New in version 2.10: Enums

Methods

addProvider

Adds a provider implementation to the registry.

providers

Returns the list of available providers.

removeProvider

Removes a provider implementation from the registry.

Signals

Attributes

addProvider(self, provider: QgsDataItemProvider)

Adds a provider implementation to the registry. Ownership of the provider is transferred to the registry.

providers(self) → List[QgsDataItemProvider]

Returns the list of available providers.

removeProvider(self, provider: QgsDataItemProvider)

Removes a provider implementation from the registry. The provider object is automatically deleted.