107 Q_DECL_DEPRECATED QString library(
const QString &providerKey )
const SIP_DEPRECATED;
110 QString pluginList(
bool asHtml =
false )
const;
115 QDir libraryDirectory()
const;
118 void setLibraryDirectory(
const QDir &path );
148 const QString &dataSource,
150 QgsDataProvider::ReadFlags flags = QgsDataProvider::ReadFlags() )
SIP_TRANSFERBACK;
158 Q_DECL_DEPRECATED
int providerCapabilities( const QString &providerKey ) const
SIP_DEPRECATED;
165 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 );
174 const QString &providerKey,
176 const QString &format,
179 int width,
int height,
180 double *geoTransform,
182 const QStringList &createOptions = QStringList() )
SIP_FACTORY;
189 QList<QPair<QString, QString> > pyramidResamplingMethods( const QString &providerKey );
199 QVariantMap decodeUri( const QString &providerKey, const QString &uri );
210 QString encodeUri( const QString &providerKey, const QVariantMap &parts );
223 QString absoluteToRelativeUri( const QString &providerKey, const QString &uri, const
QgsReadWriteContext &context ) const;
236 QString relativeToAbsoluteUri( const QString &providerKey, const QString &uri, const
QgsReadWriteContext &context ) const;
258 int listStyles( const QString &providerKey,
262 QStringList &descriptions,
277 bool styleExists( const QString &providerKey, const QString &uri, const QString &styleId, QString &errorCause
SIP_OUT );
286 QString getStyleById( const QString &providerKey, const QString &uri, const QString &styleId, QString &errCause );
292 bool deleteStyleById( const QString &providerKey, const QString &uri, const QString &styleId, QString &errCause );
299 bool saveStyle( const QString &providerKey, const QString &uri, const QString &qmlStyle, const QString &sldStyle,
300 const QString &styleName, const QString &styleDescription,
301 const QString &uiFileContent,
bool useAsDefault, QString &errCause );
308 QString loadStyle( const QString &providerKey, const QString &uri, QString &errCause );
319 QString loadStoredStyle( const QString &providerKey, const QString &uri, QString &styleName, QString &errCause );
342 bool createDb( const QString &providerKey, const QString &dbPath, QString &errCause );
360 Q_DECL_DEPRECATED QFunctionPointer function( const QString &providerKey, const QString &functionName ) const
SIP_DEPRECATED;
374 QStringList providerList() const;
385 QSet< QString > providersForLayerType(
Qgis::LayerType type ) const;
403 : mMetadata( metadata )
404 , mLayerTypes( layerTypes )
416 QList<Qgis::LayerType>
layerTypes()
const {
return mLayerTypes; }
419 SIP_PYOBJECT __repr__();
421 QString
str = QStringLiteral(
"<QgsProviderRegistry.ProviderCandidateDetails: %1>" ).arg( sipCpp->metadata()->key() );
422 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
429 QList< Qgis::LayerType > mLayerTypes;
449 QList< QgsProviderRegistry::ProviderCandidateDetails > preferredProvidersForUri(
const QString &uri )
const;
472 UnusableUriDetails(
const QString &uri = QString(),
const QString &warning = QString(),
const QList< Qgis::LayerType > &layerTypes = QList< Qgis::LayerType >() )
475 , layerTypes( layerTypes )
500 SIP_PYOBJECT __repr__();
502 QString
str = QStringLiteral(
"<QgsProviderRegistry.UnusableUriDetails: %1>" ).arg( sipCpp->warning );
503 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
593 bool shouldDeferUriForOtherProviders(
const QString &uri,
const QString &providerKey )
const;
608 bool uriIsBlocklisted(
const QString &uri )
const;
621 QList< QgsProviderSublayerDetails > querySublayers(
const QString &uri, Qgis::SublayerQueryFlags flags = Qgis::SublayerQueryFlags(),
QgsFeedback *feedback =
nullptr )
const;
635 QString fileVectorFilters()
const;
651 QString fileRasterFilters()
const;
668 QString fileMeshFilters()
const;
680 QString fileMeshDatasetFilters()
const;
696 QString filePointCloudFilters()
const;
712 QString fileVectorTileFilters()
const;
728 QString fileTiledSceneFilters()
const;
731 QString databaseDrivers()
const;
733 QString directoryDrivers()
const;
735 QString protocolDrivers()
const;
740 Q_DECL_DEPRECATED
void registerGuis( QWidget *widget )
SIP_DEPRECATED;
768 QDir mLibraryDirectory;
770 void rebuildFilterStrings();
781 QString mVectorFileFilters;
786 QString mRasterFileFilters;
791 QString mMeshFileFilters;
796 QString mMeshDatasetFileFilters;
801 QString mPointCloudFileFilters;
806 QString mVectorTileFileFilters;
811 QString mTiledSceneFileFilters;
819 QString mDatabaseDrivers;
826 QString mDirectoryDrivers;
834 QString mProtocolDrivers;
836 QList< UnusableUriHandlerInterface * > mUnusableUriHandlers;
841 static bool exists();
The class is used as a container of context for various read/write operations on other objects.