QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
29 QRegularExpressionMatch m = QRegularExpression( QStringLiteral(
"(.*?)\\://(.*)" ) ).match(
id );
33 const QString providerKey = m.captured( 1 );
34 const QString name = m.captured( 2 );
QgsConnectionRegistry(QObject *parent=nullptr)
Constructor for QgsConnectionRegistry.
QgsAbstractProviderConnection * createConnection(const QString &name) SIP_THROW(QgsProviderConnectionException)
Creates a new connection by loading the connection with the given id from the settings.
QgsProviderMetadata * providerMetadata(const QString &providerKey) const
Returns metadata of the provider or nullptr if not found.
The QgsAbstractProviderConnection provides an interface for data provider connections.
static QgsProviderRegistry * instance(const QString &pluginPath=QString())
Means of accessing canonical single instance.