QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
This class keeps a list of data item providers that may add items to the browser tree. More...
#include <qgsdataitemproviderregistry.h>
Signals | |
void | providerAdded (QgsDataItemProvider *provider) |
Emitted when a new data item provider has been added. | |
void | providerWillBeRemoved (QgsDataItemProvider *provider) |
Emitted when a data item provider is about to be removed. | |
Public Member Functions | |
QgsDataItemProviderRegistry () | |
QgsDataItemProviderRegistry (const QgsDataItemProviderRegistry &rh)=delete | |
~QgsDataItemProviderRegistry () | |
void | addProvider (QgsDataItemProvider *provider) |
Adds a provider implementation to the registry. | |
QString | dataProviderKey (const QString &dataItemProviderName) |
Returns the (possibly blank) data provider key for a given data item provider name. | |
QgsDataItemProviderRegistry & | operator= (const QgsDataItemProviderRegistry &rh)=delete |
QgsDataItemProvider * | provider (const QString &providerName) const |
Returns the (possibly nullptr ) data item provider named providerName. | |
QList< QgsDataItemProvider * > | providers () const |
Returns the list of available providers. | |
void | removeProvider (QgsDataItemProvider *provider) |
Removes a provider implementation from the registry. | |
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 26 of file qgsdataitemproviderregistry.cpp.
QgsDataItemProviderRegistry::~QgsDataItemProviderRegistry | ( | ) |
Definition at line 47 of file qgsdataitemproviderregistry.cpp.
|
delete |
void QgsDataItemProviderRegistry::addProvider | ( | QgsDataItemProvider * | provider | ) |
Adds a provider implementation to the registry.
Ownership of the provider is transferred to the registry.
Definition at line 66 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 86 of file qgsdataitemproviderregistry.cpp.
|
delete |
QgsDataItemProvider * QgsDataItemProviderRegistry::provider | ( | const QString & | providerName | ) | const |
Returns the (possibly nullptr
) data item provider named providerName.
Definition at line 54 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 52 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 76 of file qgsdataitemproviderregistry.cpp.