QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
Loading...
Searching...
No Matches
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.
 
 ~QgsExternalStorageRegistry ()
 Destructor.
 
QgsExternalStorageexternalStorageFromType (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.
 

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 29 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 34 of file qgsexternalstorageregistry.cpp.

◆ externalStorages()

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

Returns a list of registered project storage implementations.

Definition at line 44 of file qgsexternalstorageregistry.cpp.

◆ registerExternalStorage()

void QgsExternalStorageRegistry::registerExternalStorage ( QgsExternalStorage storage)

Registers a storage backend and takes ownership of it.

Definition at line 49 of file qgsexternalstorageregistry.cpp.

◆ unregisterExternalStorage()

void QgsExternalStorageRegistry::unregisterExternalStorage ( QgsExternalStorage storage)

Unregisters a storage backend and destroys its instance.

Definition at line 55 of file qgsexternalstorageregistry.cpp.


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