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.Sets the external storage
status
Returns content status
Signals
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
- cancel(self)¶
Cancels content fetching/storing
- canceled¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Parameters:
name (str = ...) –
revision (int = ...) –
arguments (Sequence = ...) –
- Return type:
PYQT_SIGNAL
- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- customEvent(self, QEvent)¶
- disconnectNotify(self, QMetaMethod)¶
- errorOccurred¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Parameters:
name (str = ...) –
revision (int = ...) –
arguments (Sequence = ...) –
- Return type:
PYQT_SIGNAL
- errorString(self) str ¶
Returns error textual description if an error occurred and
status()
returns Failed- Return type:
str
- isSignalConnected(self, QMetaMethod) bool ¶
- progressChanged¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Parameters:
name (str = ...) –
revision (int = ...) –
arguments (Sequence = ...) –
- Return type:
PYQT_SIGNAL
- 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 ¶
- setStatus(self, status: Qgis.ContentStatus)¶
Sets the external storage
status
- Parameters:
status (Qgis.ContentStatus) –
- status(self) Qgis.ContentStatus ¶
Returns content status
- Return type:
- timerEvent(self, QTimerEvent)¶