|
QGIS API Documentation
3.18.1-Zürich (202f1bf7e5)
|
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 cannot be copied. More... | |
| ~QgsProjectStorageGuiRegistry () | |
| void | initializeFromProviderGuiRegistry (QgsProviderGuiRegistry *providerGuiRegistry) |
| Initializes the registry. More... | |
| QgsProjectStorageGuiRegistry & | operator= (const QgsProjectStorageGuiRegistry &rh)=delete |
| QgsProjectStorageGuiRegistry cannot be copied. More... | |
| QgsProjectStorageGuiProvider * | projectStorageFromType (const QString &type) |
Returns storage implementation if the storage type matches one. Returns nullptr otherwise (it is a normal file) More... | |
| QgsProjectStorageGuiProvider * | projectStorageFromUri (const QString &uri) |
Returns storage implementation if the URI matches one. Returns nullptr otherwise (it is a normal file) More... | |
| QList< QgsProjectStorageGuiProvider * > | projectStorages () const |
| Returns a list of registered project storage implementations. More... | |
| void | registerProjectStorage (QgsProjectStorageGuiProvider *storage) |
| Registers a storage backend and takes ownership of it. More... | |
| void | unregisterProjectStorage (QgsProjectStorageGuiProvider *storage) |
| Unregisters a storage backend and destroys its instance. More... | |
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 |
QgsProjectStorageGuiRegistry cannot be copied.
| 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 |
QgsProjectStorageGuiRegistry cannot be copied.
| 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.