QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
21 #include <QRegularExpression>
30 const QRegularExpressionMatch m = QRegularExpression( QStringLiteral(
"(.*?)\\://(.*)" ) ).match(
id );
34 const QString providerKey = m.captured( 1 );
35 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.