QGIS API Documentation
3.8.0-Zanzibar (11aff65)
|
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... | |
QgsDataItemProviderRegistry & | operator= (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... | |
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().
Definition at line 36 of file qgsdataitemproviderregistry.h.
QgsDataItemProviderRegistry::QgsDataItemProviderRegistry | ( | ) |
Definition at line 77 of file qgsdataitemproviderregistry.cpp.
QgsDataItemProviderRegistry::~QgsDataItemProviderRegistry | ( | ) |
Definition at line 121 of file qgsdataitemproviderregistry.cpp.
|
delete |
QgsDataItemProviderRegistry cannot be copied.
void QgsDataItemProviderRegistry::addProvider | ( | QgsDataItemProvider * | provider | ) |
Adds a provider implementation to the registry.
Ownership of the provider is transferred to the registry.
Definition at line 126 of file qgsdataitemproviderregistry.cpp.
|
delete |
QgsDataItemProviderRegistry cannot be copied.
|
inline |
Returns the list of available providers.
Definition at line 52 of file qgsdataitemproviderregistry.h.
void QgsDataItemProviderRegistry::removeProvider | ( | QgsDataItemProvider * | provider | ) |
Removes a provider implementation from the registry.
The provider object is automatically deleted.
Definition at line 131 of file qgsdataitemproviderregistry.cpp.