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: Enums
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
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
-