Class: QgsProjectStorageGuiRegistry¶
A registry / canonical manager of GUI parts of project storage backends.
QgsProjectStorageGuiRegistry is not usually directly
created, but rather accessed through
QgsGui.projectStorageGuiRegistry().
See also
Added in version 3.10.
List of all members, including inherited members
Methods
Initializes the registry. |
|
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 |
- class qgis.gui.QgsProjectStorageGuiRegistry[source]¶
Bases:
object- initializeFromProviderGuiRegistry(self, providerGuiRegistry: QgsProviderGuiRegistry | None)[source]¶
Initializes the registry. The registry needs to be passed explicitly (instead of using singleton) because this gets called from
QgsGuiconstructor.- Parameters:
providerGuiRegistry (Optional[QgsProviderGuiRegistry])
- projectStorageFromType(self, type: str | None) QgsProjectStorageGuiProvider | None[source]¶
Returns storage implementation if the storage type matches one. Returns
Noneotherwise (it is a normal file)- Parameters:
type (Optional[str])
- Return type:
Optional[QgsProjectStorageGuiProvider]
- projectStorageFromUri(self, uri: str | None) QgsProjectStorageGuiProvider | None[source]¶
Returns storage implementation if the URI matches one. Returns
Noneotherwise (it is a normal file)- Parameters:
uri (Optional[str])
- Return type:
Optional[QgsProjectStorageGuiProvider]
- projectStorages(self) list[QgsProjectStorageGuiProvider]¶
Returns a list of registered project storage implementations
- Return type:
- registerProjectStorage(self, storage: QgsProjectStorageGuiProvider | None)[source]¶
Registers a storage backend and takes ownership of it
- Parameters:
storage (Optional[QgsProjectStorageGuiProvider])
- unregisterProjectStorage(self, storage: QgsProjectStorageGuiProvider | None)[source]¶
Unregisters a storage backend and destroys its instance
- Parameters:
storage (Optional[QgsProjectStorageGuiProvider])