QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
|
Registry of external storage backends used by QgsExternalResourceWidget. More...
#include <qgsexternalstorageregistry.h>
Public Member Functions | |
QgsExternalStorageRegistry () | |
Constructor - creates a registry of external storage backends. More... | |
~QgsExternalStorageRegistry () | |
Destructor. More... | |
QgsExternalStorage * | externalStorageFromType (const QString &type) const |
Returns external storage implementation if the storage type matches one. More... | |
QList< QgsExternalStorage * > | externalStorages () const |
Returns a list of registered project storage implementations. More... | |
void | registerExternalStorage (QgsExternalStorage *storage) |
Registers a storage backend and takes ownership of it. More... | |
void | unregisterExternalStorage (QgsExternalStorage *storage) |
Unregisters a storage backend and destroys its instance. More... | |
Registry of external storage backends used by QgsExternalResourceWidget.
QgsExternalStorageRegistry is not usually directly created, but rather accessed through QgsApplication::projectStorageRegistry().
Definition at line 36 of file qgsexternalstorageregistry.h.
QgsExternalStorageRegistry::QgsExternalStorageRegistry | ( | ) |
Constructor - creates a registry of external storage backends.
Definition at line 22 of file qgsexternalstorageregistry.cpp.
QgsExternalStorageRegistry::~QgsExternalStorageRegistry | ( | ) |
Destructor.
Definition at line 29 of file qgsexternalstorageregistry.cpp.
QgsExternalStorage * QgsExternalStorageRegistry::externalStorageFromType | ( | const QString & | type | ) | const |
Returns external storage implementation if the storage type matches one.
Returns nullptr otherwise
Definition at line 34 of file qgsexternalstorageregistry.cpp.
QList< QgsExternalStorage * > QgsExternalStorageRegistry::externalStorages | ( | ) | const |
Returns a list of registered project storage implementations.
Definition at line 44 of file qgsexternalstorageregistry.cpp.
void QgsExternalStorageRegistry::registerExternalStorage | ( | QgsExternalStorage * | storage | ) |
Registers a storage backend and takes ownership of it.
Definition at line 49 of file qgsexternalstorageregistry.cpp.
void QgsExternalStorageRegistry::unregisterExternalStorage | ( | QgsExternalStorage * | storage | ) |
Unregisters a storage backend and destroys its instance.
Definition at line 55 of file qgsexternalstorageregistry.cpp.