21 #include <QRegularExpression>
30 QRegularExpressionMatch m = QRegularExpression( QStringLiteral(
"(.*?)\\://(.*)" ) ).match(
id );
34 const QString providerKey = m.captured( 1 );
35 const QString name = m.captured( 2 );
The QgsAbstractProviderConnection provides an interface for data provider connections.
QgsAbstractProviderConnection * createConnection(const QString &name) SIP_THROW(QgsProviderConnectionException)
Creates a new connection by loading the connection with the given id from the settings.
QgsConnectionRegistry(QObject *parent=nullptr)
Constructor for QgsConnectionRegistry.
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.