19#include "moc_qgsconnectionregistry.cpp" 
   22#include <QRegularExpression> 
   31  const QRegularExpressionMatch m = QRegularExpression( QStringLiteral( 
"(.*?)\\://(.*)" ) ).match( 
id );
 
   35  const QString providerKey = m.captured( 1 );
 
   36  const QString name = m.captured( 2 );
 
 
An interface for data provider connections.
 
QgsAbstractProviderConnection * createConnection(const QString &name)
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.