28 const auto constProvidersList = providersList;
29 for (
const QString &key : constProvidersList )
32 mProviders << providerList;
38 qDeleteAll( mProviders );
45 mProviders.append( provider );
50 int index = mProviders.indexOf( provider );
52 delete mProviders.takeAt( index );
QList< QgsDataItemProvider *> dataItemProviders(const QString &providerKey) const
Returns list of data item providers of the provider.
static QgsProviderRegistry * instance(const QString &pluginPath=QString())
Means of accessing canonical single instance.
QList< QgsDataItemProvider * > providers() const
Returns the list of available providers.
void removeProvider(QgsDataItemProvider *provider)
Removes a provider implementation from the registry.
~QgsDataItemProviderRegistry()
void addProvider(QgsDataItemProvider *provider)
Adds a provider implementation to the registry.
QgsDataItemProviderRegistry()
QStringList providerList() const
Returns list of available providers by their keys.
This is the interface for those who want to add custom data items to the browser tree.