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 );
184 QString encodeUri( const QString &providerKey, const QVariantMap &parts );
206 int listStyles( const QString &providerKey,
210 QStringList &descriptions,
218 QString getStyleById( const QString &providerKey, const QString &uri, QString styleId, QString &errCause );
224 bool deleteStyleById( const QString &providerKey, const QString &uri, QString styleId, QString &errCause );
231 bool saveStyle( const QString &providerKey, const QString &uri, const QString &qmlStyle, const QString &sldStyle,
232 const QString &styleName, const QString &styleDescription,
233 const QString &uiFileContent,
bool useAsDefault, QString &errCause );
239 QString loadStyle( const QString &providerKey, const QString &uri, QString &errCause );
245 bool createDb( const QString &providerKey, const QString &dbPath, QString &errCause );
263 Q_DECL_DEPRECATED QFunctionPointer function( const QString &providerKey, const QString &functionName )
SIP_DEPRECATED;
277 QStringList providerList() const;
295 virtual QString fileVectorFilters() const;
308 virtual QString fileRasterFilters() const;
323 virtual QString fileMeshFilters() const;
338 virtual QString fileMeshDatasetFilters() const;
341 virtual QString databaseDrivers() const;
343 virtual QString directoryDrivers() const;
345 virtual QString protocolDrivers() const;
350 Q_DECL_DEPRECATED
void registerGuis( QWidget *widget )
SIP_DEPRECATED;
378 QDir mLibraryDirectory;
389 QString mVectorFileFilters;
394 QString mRasterFileFilters;
399 QString mMeshFileFilters;
404 QString mMeshDatasetFileFilters;
412 QString mDatabaseDrivers;
419 QString mDirectoryDrivers;
427 QString mProtocolDrivers;
432 static bool exists();
438 #endif //QGSPROVIDERREGISTRY_H