QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
Registry of storage backends that QgsProject may use. More...
#include <qgsprojectstorageregistry.h>
Public Member Functions | |
~QgsProjectStorageRegistry () | |
QgsProjectStorage * | projectStorageFromType (const QString &type) |
Returns storage implementation if the storage type matches one. Returns nullptr otherwise (it is a normal file) More... | |
QgsProjectStorage * | projectStorageFromUri (const QString &uri) |
Returns storage implementation if the URI matches one. Returns nullptr otherwise (it is a normal file) More... | |
QList< QgsProjectStorage * > | projectStorages () const |
Returns a list of registered project storage implementations. More... | |
void | registerProjectStorage (QgsProjectStorage *storage) |
Registers a storage backend and takes ownership of it. More... | |
void | unregisterProjectStorage (QgsProjectStorage *storage) |
Unregisters a storage backend and destroys its instance. More... | |
Registry of storage backends that QgsProject may use.
This is a singleton that should be accessed through QgsApplication::projectStorageRegistry().
Definition at line 34 of file qgsprojectstorageregistry.h.
QgsProjectStorageRegistry::~QgsProjectStorageRegistry | ( | ) |
Definition at line 21 of file qgsprojectstorageregistry.cpp.
QgsProjectStorage * QgsProjectStorageRegistry::projectStorageFromType | ( | const QString & | type | ) |
Returns storage implementation if the storage type matches one. Returns nullptr
otherwise (it is a normal file)
Definition at line 26 of file qgsprojectstorageregistry.cpp.
QgsProjectStorage * QgsProjectStorageRegistry::projectStorageFromUri | ( | const QString & | uri | ) |
Returns storage implementation if the URI matches one. Returns nullptr
otherwise (it is a normal file)
Definition at line 31 of file qgsprojectstorageregistry.cpp.
QList< QgsProjectStorage * > QgsProjectStorageRegistry::projectStorages | ( | ) | const |
Returns a list of registered project storage implementations.
Definition at line 43 of file qgsprojectstorageregistry.cpp.
void QgsProjectStorageRegistry::registerProjectStorage | ( | QgsProjectStorage * | storage | ) |
Registers a storage backend and takes ownership of it.
Definition at line 48 of file qgsprojectstorageregistry.cpp.
void QgsProjectStorageRegistry::unregisterProjectStorage | ( | QgsProjectStorage * | storage | ) |
Unregisters a storage backend and destroys its instance.
Definition at line 53 of file qgsprojectstorageregistry.cpp.