QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
This class keeps a list of source select providers that may add items to the QgsDataSourceManagerDialog When created, it automatically adds providers from data provider plugins (e.g. More...
#include <qgssourceselectproviderregistry.h>
Public Member Functions | |
QgsSourceSelectProviderRegistry ()=default | |
Constructor for QgsSourceSelectProviderRegistry. More... | |
QgsSourceSelectProviderRegistry (const QgsSourceSelectProviderRegistry &rh)=delete | |
QgsDataItemProviderRegistry cannot be copied. More... | |
~QgsSourceSelectProviderRegistry () | |
void | addProvider (QgsSourceSelectProvider *provider) |
Add a provider implementation. Takes ownership of the object. More... | |
QgsSourceSelectProviderRegistry & | operator= (const QgsSourceSelectProviderRegistry &rh)=delete |
QgsDataItemProviderRegistry cannot be copied. More... | |
QgsSourceSelectProvider * | providerByName (const QString &name) |
Returns a provider by name or nullptr if not found. More... | |
QList< QgsSourceSelectProvider * > | providers () |
Gets list of available providers. More... | |
QList< QgsSourceSelectProvider * > | providersByKey (const QString &providerKey) |
Returns a (possibly empty) list of providers by data providerkey. More... | |
bool | removeProvider (QgsSourceSelectProvider *provider) |
Remove provider implementation from the list (provider object is deleted) More... | |
This class keeps a list of source select providers that may add items to the QgsDataSourceManagerDialog When created, it automatically adds providers from data provider plugins (e.g.
PostGIS, WMS, ...)
QgsSourceSelectProviderRegistry is not usually directly created, but rather accessed through QgsGui::sourceSelectProviderRegistry().
Definition at line 38 of file qgssourceselectproviderregistry.h.
|
default |
Constructor for QgsSourceSelectProviderRegistry.
QgsSourceSelectProviderRegistry::~QgsSourceSelectProviderRegistry | ( | ) |
Definition at line 24 of file qgssourceselectproviderregistry.cpp.
|
delete |
QgsDataItemProviderRegistry cannot be copied.
void QgsSourceSelectProviderRegistry::addProvider | ( | QgsSourceSelectProvider * | provider | ) |
Add a provider implementation. Takes ownership of the object.
Definition at line 35 of file qgssourceselectproviderregistry.cpp.
|
delete |
QgsDataItemProviderRegistry cannot be copied.
QgsSourceSelectProvider * QgsSourceSelectProviderRegistry::providerByName | ( | const QString & | name | ) |
Returns a provider by name or nullptr if not found.
Definition at line 55 of file qgssourceselectproviderregistry.cpp.
QList< QgsSourceSelectProvider * > QgsSourceSelectProviderRegistry::providers | ( | ) |
Gets list of available providers.
Definition at line 29 of file qgssourceselectproviderregistry.cpp.
QList< QgsSourceSelectProvider * > QgsSourceSelectProviderRegistry::providersByKey | ( | const QString & | providerKey | ) |
Returns a (possibly empty) list of providers by data providerkey.
Definition at line 68 of file qgssourceselectproviderregistry.cpp.
bool QgsSourceSelectProviderRegistry::removeProvider | ( | QgsSourceSelectProvider * | provider | ) |
Remove provider implementation from the list (provider object is deleted)
Definition at line 44 of file qgssourceselectproviderregistry.cpp.