QGIS API Documentation  3.6.0-Noosa (5873452)
Public Member Functions | List of all members
QgsDataItemProviderRegistry Class Reference

This class keeps a list of data item providers that may add items to the browser tree. More...

#include <qgsdataitemproviderregistry.h>

Public Member Functions

 QgsDataItemProviderRegistry ()
 
 QgsDataItemProviderRegistry (const QgsDataItemProviderRegistry &rh)=delete
 QgsDataItemProviderRegistry cannot be copied. More...
 
 ~QgsDataItemProviderRegistry ()
 
void addProvider (QgsDataItemProvider *provider)
 Adds a provider implementation to the registry. More...
 
QgsDataItemProviderRegistryoperator= (const QgsDataItemProviderRegistry &rh)=delete
 QgsDataItemProviderRegistry cannot be copied. More...
 
QList< QgsDataItemProvider * > providers () const
 Returns the list of available providers. More...
 
void removeProvider (QgsDataItemProvider *provider)
 Removes a provider implementation from the registry. More...
 

Detailed Description

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().

Since
QGIS 2.10

Definition at line 36 of file qgsdataitemproviderregistry.h.

Constructor & Destructor Documentation

◆ QgsDataItemProviderRegistry() [1/2]

QgsDataItemProviderRegistry::QgsDataItemProviderRegistry ( )

Definition at line 77 of file qgsdataitemproviderregistry.cpp.

◆ ~QgsDataItemProviderRegistry()

QgsDataItemProviderRegistry::~QgsDataItemProviderRegistry ( )

Definition at line 120 of file qgsdataitemproviderregistry.cpp.

◆ QgsDataItemProviderRegistry() [2/2]

QgsDataItemProviderRegistry::QgsDataItemProviderRegistry ( const QgsDataItemProviderRegistry rh)
delete

QgsDataItemProviderRegistry cannot be copied.

Member Function Documentation

◆ addProvider()

void QgsDataItemProviderRegistry::addProvider ( QgsDataItemProvider provider)

Adds a provider implementation to the registry.

Ownership of the provider is transferred to the registry.

Definition at line 125 of file qgsdataitemproviderregistry.cpp.

◆ operator=()

QgsDataItemProviderRegistry& QgsDataItemProviderRegistry::operator= ( const QgsDataItemProviderRegistry rh)
delete

QgsDataItemProviderRegistry cannot be copied.

◆ providers()

QList<QgsDataItemProvider *> QgsDataItemProviderRegistry::providers ( ) const
inline

Returns the list of available providers.

Definition at line 52 of file qgsdataitemproviderregistry.h.

◆ removeProvider()

void QgsDataItemProviderRegistry::removeProvider ( QgsDataItemProvider provider)

Removes a provider implementation from the registry.

The provider object is automatically deleted.

Definition at line 130 of file qgsdataitemproviderregistry.cpp.


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