Subgroup: Project
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
projectStorageFromType
Returns storage implementation if the storage type matches one. projectStorageFromUri
Returns storage implementation if the URI matches one. projectStorages
Returns a list of registered project storage implementations registerProjectStorage
Registers a storage backend and takes ownership of it unregisterProjectStorage
Unregisters a storage backend and destroys its instance Signals
Attributes
-
projectStorageFromType
(self, type: str) → QgsProjectStorage¶ Returns storage implementation if the storage type matches one. Returns null pointer otherwise (it is a normal file)
-
projectStorageFromUri
(self, uri: str) → QgsProjectStorage¶ Returns storage implementation if the URI matches one. Returns null pointer otherwise (it is a normal file)
-
projectStorages
(self) → object¶ Returns a list of registered project storage implementations
-
registerProjectStorage
(self, storage: QgsProjectStorage)¶ Registers a storage backend and takes ownership of it
-
unregisterProjectStorage
(self, storage: QgsProjectStorage)¶ Unregisters a storage backend and destroys its instance
-