QGIS API Documentation  2.18.3-Las Palmas (77b8c3d)
Public Member Functions | Static Public Member Functions | List of all members
QgsDataItemProviderRegistry Class Reference

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

#include <qgsdataitemproviderregistry.h>

Public Member Functions

 ~QgsDataItemProviderRegistry ()
 
void addProvider (QgsDataItemProvider *provider)
 Add a provider implementation. Takes ownership of the object. More...
 
QList< QgsDataItemProvider * > providers () const
 Get list of available providers. More...
 
void removeProvider (QgsDataItemProvider *provider)
 Remove provider implementation from the list (provider object is deleted) More...
 

Static Public Member Functions

static QgsDataItemProviderRegistryinstance ()
 

Detailed Description

This singleton 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, ...)

Note
added in 2.10

Definition at line 29 of file qgsdataitemproviderregistry.h.

Constructor & Destructor Documentation

QgsDataItemProviderRegistry::~QgsDataItemProviderRegistry ( )

Definition at line 104 of file qgsdataitemproviderregistry.cpp.

Member Function Documentation

void QgsDataItemProviderRegistry::addProvider ( QgsDataItemProvider provider)

Add a provider implementation. Takes ownership of the object.

Definition at line 109 of file qgsdataitemproviderregistry.cpp.

QgsDataItemProviderRegistry * QgsDataItemProviderRegistry::instance ( )
static

Definition at line 98 of file qgsdataitemproviderregistry.cpp.

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

Get list of available providers.

Definition at line 37 of file qgsdataitemproviderregistry.h.

void QgsDataItemProviderRegistry::removeProvider ( QgsDataItemProvider provider)

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

Definition at line 114 of file qgsdataitemproviderregistry.cpp.


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