QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
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.
Custom exception class for provider connection related exceptions.
The QgsAbstractProviderConnection provides an interface for data provider connections.
static QgsProviderRegistry * instance(const QString &pluginPath=QString())
Means of accessing canonical single instance.