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 );
245 Providers mProviders;
248 QDir mLibraryDirectory;
259 QString mVectorFileFilters;
264 QString mRasterFileFilters;
269 QString mMeshFileFilters;
274 QString mMeshDatasetFileFilters;
282 QString mDatabaseDrivers;
289 QString mDirectoryDrivers;
297 QString mProtocolDrivers;
302 static bool exists();
308 #endif //QGSPROVIDERREGISTRY_H WidgetMode
Different ways a source select dialog can be used (embedded is for the data source manager dialog) ...
Extends QApplication to provide access to QGIS specific resources such as theme paths, database paths etc.
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
Type for data provider metadata associative container.
This class represents a coordinate reference system (CRS).
Represents a vector layer which manages a vector based data sets.