104 Q_DECL_DEPRECATED QString library(
const QString &providerKey )
const SIP_DEPRECATED;
107 QString pluginList(
bool asHtml =
false )
const;
112 QDir libraryDirectory()
const;
115 void setLibraryDirectory(
const QDir &path );
145 const QString &dataSource,
154 Q_DECL_DEPRECATED
Qgis::DataItemProviderCapabilities providerCapabilities( const QString &providerKey ) const
SIP_DEPRECATED;
161 SIP_SKIP Qgis::VectorExportResult createEmptyLayer( const QString &providerKey, const QString &uri, const
QgsFields &fields,
Qgis::WkbType wkbType, const
QgsCoordinateReferenceSystem &srs,
bool overwrite, QMap<
int,
int> &oldToNewAttrIdxMap, QString &errorMessage, const QMap<QString, QVariant> *options );
170 const QString &providerKey,
172 const QString &format,
175 int width,
int height,
176 double *geoTransform,
178 const QStringList &createOptions = QStringList() )
SIP_FACTORY;
185 QList<QPair<QString, QString> > pyramidResamplingMethods( const QString &providerKey );
195 QVariantMap decodeUri( const QString &providerKey, const QString &uri );
206 QString encodeUri( const QString &providerKey, const QVariantMap &parts );
219 QString absoluteToRelativeUri( const QString &providerKey, const QString &uri, const
QgsReadWriteContext &context ) const;
232 QString relativeToAbsoluteUri( const QString &providerKey, const QString &uri, const
QgsReadWriteContext &context ) const;
254 int listStyles( const QString &providerKey,
258 QStringList &descriptions,
273 bool styleExists( const QString &providerKey, const QString &uri, const QString &styleId, QString &errorCause
SIP_OUT );
282 QString getStyleById( const QString &providerKey, const QString &uri, const QString &styleId, QString &errCause );
288 bool deleteStyleById( const QString &providerKey, const QString &uri, const QString &styleId, QString &errCause );
295 bool saveStyle( const QString &providerKey, const QString &uri, const QString &qmlStyle, const QString &sldStyle,
296 const QString &styleName, const QString &styleDescription,
297 const QString &uiFileContent,
bool useAsDefault, QString &errCause );
304 QString loadStyle( const QString &providerKey, const QString &uri, QString &errCause );
315 QString loadStoredStyle( const QString &providerKey, const QString &uri, QString &styleName, QString &errCause );
338 bool createDb( const QString &providerKey, const QString &dbPath, QString &errCause );
356 Q_DECL_DEPRECATED QFunctionPointer function( const QString &providerKey, const QString &functionName ) const
SIP_DEPRECATED;
370 QStringList providerList() const;
381 QSet< QString > providersForLayerType(
Qgis::LayerType type ) const;
399 : mMetadata( metadata )
400 , mLayerTypes( layerTypes )
412 QList<Qgis::LayerType>
layerTypes()
const {
return mLayerTypes; }
415 SIP_PYOBJECT __repr__();
417 QString str = QStringLiteral(
"<QgsProviderRegistry.ProviderCandidateDetails: %1>" ).arg( sipCpp->metadata()->key() );
418 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
425 QList< Qgis::LayerType > mLayerTypes;
445 QList< QgsProviderRegistry::ProviderCandidateDetails > preferredProvidersForUri(
const QString &uri )
const;
468 UnusableUriDetails(
const QString &uri = QString(),
const QString &warning = QString(),
const QList< Qgis::LayerType > &layerTypes = QList< Qgis::LayerType >() )
471 , layerTypes( layerTypes )
496 SIP_PYOBJECT __repr__();
498 QString str = QStringLiteral(
"<QgsProviderRegistry.UnusableUriDetails: %1>" ).arg( sipCpp->warning );
499 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
589 bool shouldDeferUriForOtherProviders(
const QString &uri,
const QString &providerKey )
const;
604 bool uriIsBlocklisted(
const QString &uri )
const;
631 QString fileVectorFilters()
const;
647 QString fileRasterFilters()
const;
664 QString fileMeshFilters()
const;
676 QString fileMeshDatasetFilters()
const;
692 QString filePointCloudFilters()
const;
708 QString fileVectorTileFilters()
const;
724 QString fileTiledSceneFilters()
const;
727 QString databaseDrivers()
const;
729 QString directoryDrivers()
const;
731 QString protocolDrivers()
const;
736 Q_DECL_DEPRECATED
void registerGuis( QWidget *widget )
SIP_DEPRECATED;
764 QDir mLibraryDirectory;
766 void rebuildFilterStrings();
777 QString mVectorFileFilters;
782 QString mRasterFileFilters;
787 QString mMeshFileFilters;
792 QString mMeshDatasetFileFilters;
797 QString mPointCloudFileFilters;
802 QString mVectorTileFileFilters;
807 QString mTiledSceneFileFilters;
815 QString mDatabaseDrivers;
822 QString mDirectoryDrivers;
830 QString mProtocolDrivers;
832 QList< UnusableUriHandlerInterface * > mUnusableUriHandlers;
837 static bool exists();
The class is used as a container of context for various read/write operations on other objects.