QGIS API Documentation  3.4.15-Madeira (e83d02e274)
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)
 Add a provider implementation. Takes ownership of the object. More...
 
QgsDataItemProviderRegistryoperator= (const QgsDataItemProviderRegistry &rh)=delete
 QgsDataItemProviderRegistry cannot be copied. More...
 
QList< QgsDataItemProvider * > providers () const
 Gets list of available providers. More...
 
void removeProvider (QgsDataItemProvider *provider)
 Remove provider implementation from the list (provider object is deleted) 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::QgsDataItemProviderRegistry ( )

Definition at line 77 of file qgsdataitemproviderregistry.cpp.

QgsDataItemProviderRegistry::~QgsDataItemProviderRegistry ( )

Definition at line 120 of file qgsdataitemproviderregistry.cpp.

QgsDataItemProviderRegistry::QgsDataItemProviderRegistry ( const QgsDataItemProviderRegistry rh)
delete

QgsDataItemProviderRegistry cannot be copied.

Member Function Documentation

void QgsDataItemProviderRegistry::addProvider ( QgsDataItemProvider provider)

Add a provider implementation. Takes ownership of the object.

Definition at line 125 of file qgsdataitemproviderregistry.cpp.

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

QgsDataItemProviderRegistry cannot be copied.

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

Gets list of available providers.

Definition at line 50 of file qgsdataitemproviderregistry.h.

void QgsDataItemProviderRegistry::removeProvider ( QgsDataItemProvider provider)

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

Definition at line 130 of file qgsdataitemproviderregistry.cpp.


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