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;
196 virtual QString fileMeshFilters() const;
211 virtual QString fileMeshDatasetFilters() const;
214 virtual QString databaseDrivers() const;
216 virtual QString directoryDrivers() const;
218 virtual QString protocolDrivers() const;
220 void registerGuis( QWidget *widget );
269 Providers mProviders;
272 QDir mLibraryDirectory;
283 QString mVectorFileFilters;
288 QString mRasterFileFilters;
293 QString mMeshFileFilters;
298 QString mMeshDatasetFileFilters;
306 QString mDatabaseDrivers;
313 QString mDirectoryDrivers;
321 QString mProtocolDrivers;
325 #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.