19 #ifndef QGSPROVIDERREGISTRY_H 20 #define QGSPROVIDERREGISTRY_H 29 #include "qgis_core.h" 79 QString library(
const QString &providerKey )
const;
82 QString pluginList(
bool asHtml =
false )
const;
87 QDir libraryDirectory()
const;
90 void setLibraryDirectory(
const QDir &path );
100 const QString &dataSource,
108 int providerCapabilities( const QString &providerKey ) const;
118 QVariantMap decodeUri( const QString &providerKey, const QString &uri );
125 QWidget *createSelectionWidget( const QString &providerKey,
126 QWidget *parent =
nullptr,
127 Qt::WindowFlags fl = Qt::WindowFlags(),
137 QFunctionPointer function( const QString &providerKey,
138 const QString &functionName );
147 QLibrary *createProviderLibrary( const QString &providerKey ) const
SIP_FACTORY;
150 QStringList providerList() const;
168 virtual QString fileVectorFilters() const;
181 virtual QString fileRasterFilters() const;
184 virtual QString databaseDrivers() const;
186 virtual QString directoryDrivers() const;
188 virtual QString protocolDrivers() const;
190 void registerGuis( QWidget *widget );
239 Providers mProviders;
242 QDir mLibraryDirectory;
253 QString mVectorFileFilters;
258 QString mRasterFileFilters;
266 QString mDatabaseDrivers;
273 QString mDirectoryDrivers;
281 QString mProtocolDrivers;
285 #endif //QGSPROVIDERREGISTRY_H WidgetMode
Different ways a source select dialog can be used (embedded is for the data source manager dialog) ...
Abstract base class for spatial data provider implementations.
A registry / canonical manager of data providers.
Setting options for creating vector data providers.
std::map< QString, QgsProviderMetadata * > Providers
Open the given vector data source.
This class represents a coordinate reference system (CRS).
Represents a vector layer which manages a vector based data sets.