Class: QgsExternalStorageRegistry

class qgis.core.QgsExternalStorageRegistry

Bases: sip.wrapper

Registry of external storage backends used by QgsExternalResourceWidget

QgsExternalStorageRegistry is not usually directly created, but rather accessed through QgsApplication.projectStorageRegistry().

New in version 3.22.

QgsExternalStorageRegistry() Constructor - creates a registry of external storage backends

QgsExternalStorageRegistry(QgsExternalStorageRegistry)

Methods

externalStorageFromType

Returns external storage implementation if the storage type matches one.

externalStorages

Returns a list of registered project storage implementations

registerExternalStorage

Registers a storage backend and takes ownership of it

unregisterExternalStorage

Unregisters a storage backend and destroys its instance

externalStorageFromType(self, type: str) QgsExternalStorage

Returns external storage implementation if the storage type matches one. Returns None otherwise

Parameters:

type (str) –

Return type:

QgsExternalStorage

externalStorages(self) List[QgsExternalStorage]

Returns a list of registered project storage implementations

Return type:

List[QgsExternalStorage]

registerExternalStorage(self, storage: QgsExternalStorage)

Registers a storage backend and takes ownership of it

Parameters:

storage (QgsExternalStorage) –

unregisterExternalStorage(self, storage: QgsExternalStorage)

Unregisters a storage backend and destroys its instance

Parameters:

storage (QgsExternalStorage) –