QgsProjectStorageRegistry class
Registry of storage backends that QgsProject may use.
Contents
- Reference
This is a singleton that should be accessed through QgsApplication::
Public functions
- auto projectStorageFromType(const QString& type) -> QgsProjectStorage*
- Returns storage implementation if the storage type matches one. Returns null pointer otherwise (it is a normal file)
- auto projectStorageFromUri(const QString& uri) -> QgsProjectStorage*
- Returns storage implementation if the URI matches one. Returns null pointer otherwise (it is a normal file)
- auto projectStorages() const -> QList<QgsProjectStorage*>
- Returns a list of registered project storage implementations.
- void registerProjectStorage(QgsProjectStorage* storage)
- Registers a storage backend and takes ownership of it.
- void unregisterProjectStorage(QgsProjectStorage* storage)
- Unregisters a storage backend and destroys its instance.