49  const QString connectionName { 
parent()->
name() };
 
 
The QgsAbstractDatabaseProviderConnection class provides common functionality for DB based connection...
 
static QgsDataItemProviderRegistry * dataItemProviderRegistry()
Returns the application's data item provider registry, which keeps a list of data item providers that...
 
static QIcon getThemeIcon(const QString &name, const QColor &fillColor=QColor(), const QColor &strokeColor=QColor())
Helper to get a theme icon.
 
A Collection: logical collection of layers or subcollections, e.g.
 
QString dataProviderKey(const QString &dataItemProviderName)
Returns the (possibly blank) data provider key for a given data item provider name.
 
Base class for all items in the model.
 
QString name() const
Returns the name of the item (the displayed text for the item).
 
QgsDataItem * parent() const
Gets item parent.
 
QString providerKey() const
Returns the provider key that created this item (e.g.
 
~QgsDatabaseSchemaItem() override
 
QgsDatabaseSchemaItem(QgsDataItem *parent, const QString &name, const QString &path=QString(), const QString &providerKey=QString())
Constructor for QgsDatabaseSchemaItem, with the specified parent item.
 
QgsAbstractDatabaseProviderConnection * databaseConnection() const override
For data items that represent a DB connection or one of its children, this method returns a connectio...
 
static QIcon iconDataCollection()
Returns the standard browser data collection icon.
 
Custom exception class for provider connection related exceptions.
 
static QgsProviderRegistry * instance(const QString &pluginPath=QString())
Means of accessing canonical single instance.
 
QgsProviderMetadata * providerMetadata(const QString &providerKey) const
Returns metadata of the provider or nullptr if not found.