Class: QgsExternalStorageContent

class qgis.core.QgsExternalStorageContent

Bases: PyQt5.QtCore.QObject

Base class for QgsExternalStorage stored and fetched content

New in version 3.22:

Methods

cancel

Cancels content fetching/storing

childEvent

connectNotify

customEvent

disconnectNotify

errorString

Returns error textual description if an error occurred and status() returns Failed

isSignalConnected

receivers

reportError

Update content according to given errorMsg error message Inherited classes should call this method whenever they meet an error.

sender

senderSignalIndex

status

Returns content status

timerEvent

Signals

canceled

The signal is emitted when content fetching/storing has been canceled [signal]

errorOccurred

The signal is emitted when an error occurred.

progressChanged

The signal is emitted whenever content fetching/storing estimated progression value progress has changed.

cancel(self)

Cancels content fetching/storing

canceled

The signal is emitted when content fetching/storing has been canceled [signal]

childEvent(self, QChildEvent)
connectNotify(self, QMetaMethod)
customEvent(self, QEvent)
disconnectNotify(self, QMetaMethod)
errorOccurred

The signal is emitted when an error occurred. errorString is a textual description of the error [signal]

Parameters

errorString (str) –

errorString(self) str

Returns error textual description if an error occurred and status() returns Failed

Return type

str

isSignalConnected(self, QMetaMethod) bool
progressChanged

The signal is emitted whenever content fetching/storing estimated progression value progress has changed. progress value is between 0 and 100. [signal]

Parameters

progress (float) –

receivers(self, PYQT_SIGNAL) int
reportError(self, errorMsg: str)

Update content according to given errorMsg error message Inherited classes should call this method whenever they meet an error.

Parameters

errorMsg (str) –

sender(self) QObject
senderSignalIndex(self) int
status(self) Qgis.ContentStatus

Returns content status

Return type

Qgis.ContentStatus

timerEvent(self, QTimerEvent)