Class: QgsExternalStorageContent¶
- class qgis.core.QgsExternalStorageContent¶
Bases:
PyQt5.QtCore.QObject
Base class for
QgsExternalStorage
stored and fetched contentNew in version 3.22:
Methods
Cancels content fetching/storing
Returns error textual description if an error occurred and
status()
returns FailedUpdate content according to given
errorMsg
error message Inherited classes should call this method whenever they meet an error.Returns content status
Signals
The signal is emitted when content fetching/storing has been canceled [signal]
The signal is emitted when an error occurred.
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
- timerEvent(self, QTimerEvent)¶