19 #ifndef QGSPROVIDERREGISTRY_H 20 #define QGSPROVIDERREGISTRY_H 30 #include "qgis_core.h" 100 Q_DECL_DEPRECATED QString library(
const QString &providerKey )
const SIP_DEPRECATED;
103 QString pluginList(
bool asHtml =
false )
const;
108 QDir libraryDirectory()
const;
111 void setLibraryDirectory(
const QDir &path );
123 const QString &dataSource,
132 Q_DECL_DEPRECATED
int providerCapabilities( const QString &providerKey ) const SIP_DEPRECATED;
139 SIP_SKIP QgsVectorLayerExporter::ExportError createEmptyLayer( const QString &providerKey, const QString &uri, const
QgsFields &fields,
QgsWkbTypes::Type wkbType, const
QgsCoordinateReferenceSystem &srs,
bool overwrite, QMap<
int,
int> &oldToNewAttrIdxMap, QString &errorMessage, const QMap<QString, QVariant> *options );
148 const QString &providerKey,
150 const QString &format,
153 int width,
int height,
154 double *geoTransform,
156 const QStringList &createOptions = QStringList() )
SIP_FACTORY;
163 QList<QPair<QString, QString> > pyramidResamplingMethods( const QString &providerKey );
173 QVariantMap decodeUri( const QString &providerKey, const QString &uri );
188 QList<
QgsDataItemProvider * > dataItemProviders( const QString &providerKey ) const SIP_FACTORY;
195 int listStyles( const QString &providerKey,
199 QStringList &descriptions,
207 QString getStyleById( const QString &providerKey, const QString &uri, QString styleId, QString &errCause );
213 bool deleteStyleById( const QString &providerKey, const QString &uri, QString styleId, QString &errCause );
220 bool saveStyle( const QString &providerKey, const QString &uri, const QString &qmlStyle, const QString &sldStyle,
221 const QString &styleName, const QString &styleDescription,
222 const QString &uiFileContent,
bool useAsDefault, QString &errCause );
228 QString loadStyle( const QString &providerKey, const QString &uri, QString &errCause );
234 bool createDb( const QString &providerKey, const QString &dbPath, QString &errCause );
240 QgsTransaction *createTransaction( const QString &providerKey, const QString &connString ) SIP_FACTORY;
252 Q_DECL_DEPRECATED QFunctionPointer function( const QString &providerKey, const QString &functionName ) SIP_DEPRECATED;
263 Q_DECL_DEPRECATED QLibrary *createProviderLibrary( const QString &providerKey ) const SIP_FACTORY SIP_DEPRECATED;
266 QStringList providerList() const;
284 virtual QString fileVectorFilters() const;
297 virtual QString fileRasterFilters() const;
312 virtual QString fileMeshFilters() const;
327 virtual QString fileMeshDatasetFilters() const;
330 virtual QString databaseDrivers() const;
332 virtual QString directoryDrivers() const;
334 virtual QString protocolDrivers() const;
339 Q_DECL_DEPRECATED
void registerGuis( QWidget *widget ) SIP_DEPRECATED;
364 Providers mProviders;
367 QDir mLibraryDirectory;
378 QString mVectorFileFilters;
383 QString mRasterFileFilters;
388 QString mMeshFileFilters;
393 QString mMeshDatasetFileFilters;
401 QString mDatabaseDrivers;
408 QString mDirectoryDrivers;
416 QString mProtocolDrivers;
421 static bool exists();
427 #endif //QGSPROVIDERREGISTRY_H WidgetMode
Different ways a source select dialog can be used.
Extends QApplication to provide access to QGIS specific resources such as theme paths, database paths etc.
Handles storage of information regarding WKB types and their properties.
Used by data items for QgsDataItem::paramWidget().
Container of fields for a vector layer.
Abstract base class for spatial data provider implementations.
const QgsCoordinateReferenceSystem & crs
The Qgis class provides global constants for use throughout the application.
Basic mode when the widget is used as a standalone dialog.
Base class for all items in the model.
A convenience class for exporting vector layers to a destination data provider.
A registry / canonical manager of data providers.
Setting options for creating vector data providers.
Used for the data source manager dialog where the widget is embedded as the main content for a partic...
This class allows including a set of layers in a database-side transaction, provided the layer data p...
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.
This is the interface for those who want to add custom data items to the browser tree.
Base class for raster data providers.