QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsProjectStorageGuiRegistry Class Reference

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.
QgsProjectStorageGuiRegistryoperator= (const QgsProjectStorageGuiRegistry &rh)=delete
QgsProjectStorageGuiProviderprojectStorageFromType (const QString &type)
 Returns storage implementation if the storage type matches one. Returns nullptr otherwise (it is a normal file).
QgsProjectStorageGuiProviderprojectStorageFromUri (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.

Detailed Description

A registry / canonical manager of GUI parts of project storage backends.

QgsProjectStorageGuiRegistry is not usually directly created, but rather accessed through QgsGui::projectStorageGuiRegistry().

See also
QgsProjectStorageRegistry
Since
QGIS 3.10

Definition at line 44 of file qgsprojectstorageguiregistry.h.

Constructor & Destructor Documentation

◆ QgsProjectStorageGuiRegistry() [1/2]

QgsProjectStorageGuiRegistry::QgsProjectStorageGuiRegistry ( )
default

◆ ~QgsProjectStorageGuiRegistry()

QgsProjectStorageGuiRegistry::~QgsProjectStorageGuiRegistry ( )

Definition at line 25 of file qgsprojectstorageguiregistry.cpp.

◆ QgsProjectStorageGuiRegistry() [2/2]

QgsProjectStorageGuiRegistry::QgsProjectStorageGuiRegistry ( const QgsProjectStorageGuiRegistry & rh)
delete

Member Function Documentation

◆ initializeFromProviderGuiRegistry()

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 62 of file qgsprojectstorageguiregistry.cpp.

◆ operator=()

QgsProjectStorageGuiRegistry & QgsProjectStorageGuiRegistry::operator= ( const QgsProjectStorageGuiRegistry & rh)
delete

◆ projectStorageFromType()

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 30 of file qgsprojectstorageguiregistry.cpp.

◆ projectStorageFromUri()

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 35 of file qgsprojectstorageguiregistry.cpp.

◆ projectStorages()

QList< QgsProjectStorageGuiProvider * > QgsProjectStorageGuiRegistry::projectStorages ( ) const

Returns a list of registered project storage implementations.

Definition at line 47 of file qgsprojectstorageguiregistry.cpp.

◆ registerProjectStorage()

void QgsProjectStorageGuiRegistry::registerProjectStorage ( QgsProjectStorageGuiProvider * storage)

Registers a storage backend and takes ownership of it.

Definition at line 52 of file qgsprojectstorageguiregistry.cpp.

◆ unregisterProjectStorage()

void QgsProjectStorageGuiRegistry::unregisterProjectStorage ( QgsProjectStorageGuiProvider * storage)

Unregisters a storage backend and destroys its instance.

Definition at line 57 of file qgsprojectstorageguiregistry.cpp.


The documentation for this class was generated from the following files: