Class: QgsExternalStorageContent¶
Base class for QgsExternalStorage stored and fetched content
Added in version 3.22.
Class Hierarchy¶
Base classes¶
Subclasses¶
Class for   | 
|
Class for   | 
Methods
Cancels content fetching/storing  | 
|
Returns error textual description if an error occurred and   | 
|
Update content according to given errorMsg error message Inherited classes should call this method whenever they meet an error.  | 
|
Sets the external storage status  | 
|
Returns content status  | 
Signals
The signal is emitted when content fetching/storing has been canceled  | 
|
The signal is emitted when an error occurred.  | 
|
The signal is emitted whenever content fetching/storing estimated progression value progress has changed.  | 
- class qgis.core.QgsExternalStorageContent[source]¶
 Bases:
QObject- signal errorOccurred(errorString: str)[source]¶
 The signal is emitted when an error occurred.
errorStringis a textual description of the error- Parameters:
 errorString (str)
- errorString(self) str¶
 Returns error textual description if an error occurred and
status()returns Failed- Return type:
 str
- signal progressChanged(progress: float)[source]¶
 The signal is emitted whenever content fetching/storing estimated progression value
progresshas changed.progressvalue is between 0 and 100.- Parameters:
 progress (float)
- reportError(self, errorMsg: str | None)[source]¶
 Update content according to given
errorMsgerror message Inherited classes should call this method whenever they meet an error.- Parameters:
 errorMsg (Optional[str])
- setStatus(self, status: Qgis.ContentStatus)[source]¶
 Sets the external storage
status- Parameters:
 status (Qgis.ContentStatus)
- status(self) Qgis.ContentStatus[source]¶
 Returns content status
- Return type: