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;
115 QWidget *createSelectionWidget( const QString &providerKey,
116 QWidget *parent =
nullptr,
117 Qt::WindowFlags fl = Qt::WindowFlags(),
127 QFunctionPointer function( const QString &providerKey,
128 const QString &functionName );
137 QLibrary *createProviderLibrary( const QString &providerKey ) const
SIP_FACTORY;
140 QStringList providerList() const;
158 virtual QString fileVectorFilters() const;
171 virtual QString fileRasterFilters() const;
174 virtual QString databaseDrivers() const;
176 virtual QString directoryDrivers() const;
178 virtual QString protocolDrivers() const;
180 void registerGuis( QWidget *widget );
229 Providers mProviders;
232 QDir mLibraryDirectory;
243 QString mVectorFileFilters;
248 QString mRasterFileFilters;
256 QString mDatabaseDrivers;
263 QString mDirectoryDrivers;
271 QString mProtocolDrivers;
275 #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.