QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
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) | |
QgsProjectStorage * | projectStorageFromUri (const QString &uri) |
Returns storage implementation if the URI matches one. Returns nullptr otherwise (it is a normal file) | |
QList< QgsProjectStorage * > | projectStorages () const |
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. | |
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 51 of file qgsprojectstorageregistry.cpp.
void QgsProjectStorageRegistry::registerProjectStorage | ( | QgsProjectStorage * | storage | ) |
Registers a storage backend and takes ownership of it.
Definition at line 56 of file qgsprojectstorageregistry.cpp.
void QgsProjectStorageRegistry::unregisterProjectStorage | ( | QgsProjectStorage * | storage | ) |
Unregisters a storage backend and destroys its instance.
Definition at line 61 of file qgsprojectstorageregistry.cpp.