Class: QgsExternalStorageContent¶
Base class for QgsExternalStorage
stored and fetched
content.
Added in version 3.22.
Class Hierarchy¶
Base classes¶
Subclasses¶
Abstract base class for |
|
Abstract base class for |
Methods
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 |
Virtual Methods
In PyQGIS, only methods marked as virtual
can be safely overridden in a Python subclass of QgsExternalStorageContent. See the FAQ for more details.
Cancels content fetching/storing |
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.
errorString
is 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
progress
has changed.progress
value is between 0 and 100.- Parameters:
progress (float)
- reportError(self, errorMsg: str | None)[source]¶
Update content according to given
errorMsg
error 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: