QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
Registry of external storage backends used by QgsExternalResourceWidget. More...
#include <qgsexternalstorageregistry.h>
Public Member Functions | |
QgsExternalStorageRegistry () | |
Constructor - creates a registry of external storage backends. | |
~QgsExternalStorageRegistry () | |
QgsExternalStorage * | externalStorageFromType (const QString &type) const |
Returns external storage implementation if the storage type matches one. | |
QList< QgsExternalStorage * > | externalStorages () const |
Returns a list of registered project storage implementations. | |
void | registerExternalStorage (QgsExternalStorage *storage) |
Registers a storage backend and takes ownership of it. | |
void | unregisterExternalStorage (QgsExternalStorage *storage) |
Unregisters a storage backend and destroys its instance. | |
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 | ( | ) |
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.