QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
A registry / canonical manager of GUI parts of project storage backends. More...
#include <qgsprojectstorageguiregistry.h>
Public Member Functions | |
QgsProjectStorageGuiRegistry () | |
QgsProjectStorageGuiRegistry (const QgsProjectStorageGuiRegistry &rh)=delete | |
~QgsProjectStorageGuiRegistry () | |
void | initializeFromProviderGuiRegistry (QgsProviderGuiRegistry *providerGuiRegistry) |
Initializes the registry. | |
QgsProjectStorageGuiRegistry & | operator= (const QgsProjectStorageGuiRegistry &rh)=delete |
QgsProjectStorageGuiProvider * | projectStorageFromType (const QString &type) |
Returns storage implementation if the storage type matches one. Returns nullptr otherwise (it is a normal file) | |
QgsProjectStorageGuiProvider * | projectStorageFromUri (const QString &uri) |
Returns storage implementation if the URI matches one. Returns nullptr otherwise (it is a normal file) | |
QList< QgsProjectStorageGuiProvider * > | projectStorages () const |
Returns a list of registered project storage implementations. | |
void | registerProjectStorage (QgsProjectStorageGuiProvider *storage) |
Registers a storage backend and takes ownership of it. | |
void | unregisterProjectStorage (QgsProjectStorageGuiProvider *storage) |
Unregisters a storage backend and destroys its instance. | |
A registry / canonical manager of GUI parts of project storage backends.
QgsProjectStorageGuiRegistry is not usually directly created, but rather accessed through QgsGui::projectStorageGuiRegistry().
Definition at line 44 of file qgsprojectstorageguiregistry.h.
|
default |
QgsProjectStorageGuiRegistry::~QgsProjectStorageGuiRegistry | ( | ) |
Definition at line 24 of file qgsprojectstorageguiregistry.cpp.
|
delete |
void QgsProjectStorageGuiRegistry::initializeFromProviderGuiRegistry | ( | QgsProviderGuiRegistry * | providerGuiRegistry | ) |
Initializes the registry.
The registry needs to be passed explicitly (instead of using singleton) because this gets called from QgsGui constructor.
Definition at line 61 of file qgsprojectstorageguiregistry.cpp.
|
delete |
QgsProjectStorageGuiProvider * QgsProjectStorageGuiRegistry::projectStorageFromType | ( | const QString & | type | ) |
Returns storage implementation if the storage type matches one. Returns nullptr
otherwise (it is a normal file)
Definition at line 29 of file qgsprojectstorageguiregistry.cpp.
QgsProjectStorageGuiProvider * QgsProjectStorageGuiRegistry::projectStorageFromUri | ( | const QString & | uri | ) |
Returns storage implementation if the URI matches one. Returns nullptr
otherwise (it is a normal file)
Definition at line 34 of file qgsprojectstorageguiregistry.cpp.
QList< QgsProjectStorageGuiProvider * > QgsProjectStorageGuiRegistry::projectStorages | ( | ) | const |
Returns a list of registered project storage implementations.
Definition at line 46 of file qgsprojectstorageguiregistry.cpp.
void QgsProjectStorageGuiRegistry::registerProjectStorage | ( | QgsProjectStorageGuiProvider * | storage | ) |
Registers a storage backend and takes ownership of it.
Definition at line 51 of file qgsprojectstorageguiregistry.cpp.
void QgsProjectStorageGuiRegistry::unregisterProjectStorage | ( | QgsProjectStorageGuiProvider * | storage | ) |
Unregisters a storage backend and destroys its instance.
Definition at line 56 of file qgsprojectstorageguiregistry.cpp.