QGIS API Documentation 3.29.0-Master (006c3c0232)
Public Member Functions | List of all members
QgsExternalStorageRegistry Class Reference

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...
 
QgsExternalStorageexternalStorageFromType (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...
 

Detailed Description

Registry of external storage backends used by QgsExternalResourceWidget.

QgsExternalStorageRegistry is not usually directly created, but rather accessed through QgsApplication::projectStorageRegistry().

Since
QGIS 3.22

Definition at line 36 of file qgsexternalstorageregistry.h.

Constructor & Destructor Documentation

◆ QgsExternalStorageRegistry()

QgsExternalStorageRegistry::QgsExternalStorageRegistry ( )

Constructor - creates a registry of external storage backends.

Definition at line 22 of file qgsexternalstorageregistry.cpp.

◆ ~QgsExternalStorageRegistry()

QgsExternalStorageRegistry::~QgsExternalStorageRegistry ( )

Destructor.

Definition at line 28 of file qgsexternalstorageregistry.cpp.

Member Function Documentation

◆ externalStorageFromType()

QgsExternalStorage * QgsExternalStorageRegistry::externalStorageFromType ( const QString &  type) const

Returns external storage implementation if the storage type matches one.

Returns nullptr otherwise

Definition at line 33 of file qgsexternalstorageregistry.cpp.

◆ externalStorages()

QList< QgsExternalStorage * > QgsExternalStorageRegistry::externalStorages ( ) const

Returns a list of registered project storage implementations.

Definition at line 43 of file qgsexternalstorageregistry.cpp.

◆ registerExternalStorage()

void QgsExternalStorageRegistry::registerExternalStorage ( QgsExternalStorage storage)

Registers a storage backend and takes ownership of it.

Definition at line 48 of file qgsexternalstorageregistry.cpp.

◆ unregisterExternalStorage()

void QgsExternalStorageRegistry::unregisterExternalStorage ( QgsExternalStorage storage)

Unregisters a storage backend and destroys its instance.

Definition at line 54 of file qgsexternalstorageregistry.cpp.


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