QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
#include <qgsdataitemproviderregistry.h>
Signals | |
void | providerAdded (QgsDataItemProvider *provider) |
Emitted when a new data item provider has been added. More... | |
void | providerWillBeRemoved (QgsDataItemProvider *provider) |
Emitted when a data item provider is about to be removed. More... | |
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... | |
QString | dataProviderKey (const QString &dataItemProviderName) |
Returns the (possibly blank) data provider key for a given data item provider name. More... | |
QgsDataItemProviderRegistry & | operator= (const QgsDataItemProviderRegistry &rh)=delete |
QgsDataItemProviderRegistry cannot be copied. More... | |
QgsDataItemProvider * | provider (const QString &providerName) const |
Returns the (possibly NULL) data item provider named providerName. 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 39 of file qgsdataitemproviderregistry.h.
QgsDataItemProviderRegistry::QgsDataItemProviderRegistry | ( | ) |
Definition at line 24 of file qgsdataitemproviderregistry.cpp.
QgsDataItemProviderRegistry::~QgsDataItemProviderRegistry | ( | ) |
Definition at line 43 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 62 of file qgsdataitemproviderregistry.cpp.
QString QgsDataItemProviderRegistry::dataProviderKey | ( | const QString & | dataItemProviderName | ) |
Returns the (possibly blank) data provider key for a given data item provider name.
dataItemProviderName | name of the data item provider |
Definition at line 82 of file qgsdataitemproviderregistry.cpp.
|
delete |
QgsDataItemProviderRegistry cannot be copied.
QgsDataItemProvider * QgsDataItemProviderRegistry::provider | ( | const QString & | providerName | ) | const |
Returns the (possibly NULL) data item provider named providerName.
Definition at line 50 of file qgsdataitemproviderregistry.cpp.
|
signal |
Emitted when a new data item provider has been added.
QList< QgsDataItemProvider * > QgsDataItemProviderRegistry::providers | ( | ) | const |
Returns the list of available providers.
Definition at line 48 of file qgsdataitemproviderregistry.cpp.
|
signal |
Emitted when a data item provider is about to be removed.
void QgsDataItemProviderRegistry::removeProvider | ( | QgsDataItemProvider * | provider | ) |
Removes a provider implementation from the registry.
The provider object is automatically deleted.
Definition at line 72 of file qgsdataitemproviderregistry.cpp.