Class: QgsProjectStorageRegistry¶
- class qgis.core.QgsProjectStorageRegistry¶
Bases:
sip.wrapper
Registry of storage backends that
QgsProject
may use.This is a singleton that should be accessed through
QgsApplication.projectStorageRegistry()
.New in version 3.2:
Methods
Returns storage implementation if the storage type matches one.
Returns storage implementation if the URI matches one.
Returns a list of registered project storage implementations
Registers a storage backend and takes ownership of it
Unregisters a storage backend and destroys its instance
- projectStorageFromType(self, type: str) QgsProjectStorage ¶
Returns storage implementation if the storage type matches one. Returns
None
otherwise (it is a normal file)- Parameters
type (str) –
- Return type
- projectStorageFromUri(self, uri: str) QgsProjectStorage ¶
Returns storage implementation if the URI matches one. Returns
None
otherwise (it is a normal file)- Parameters
uri (str) –
- Return type
- projectStorages(self) List[QgsProjectStorage] ¶
Returns a list of registered project storage implementations
- Return type
List[QgsProjectStorage]
- registerProjectStorage(self, storage: QgsProjectStorage)¶
Registers a storage backend and takes ownership of it
- Parameters
storage (QgsProjectStorage) –
- unregisterProjectStorage(self, storage: QgsProjectStorage)¶
Unregisters a storage backend and destroys its instance
- Parameters
storage (QgsProjectStorage) –