Class: QgsAbstractContentCacheBase¶
- class qgis.core.QgsAbstractContentCacheBase¶
Bases:
PyQt5.QtCore.QObject
A QObject derived base class for
QgsAbstractContentCache
.Required because template based class (such as
QgsAbstractContentCache
) cannot use the Q_OBJECT macro.New in version 3.6.
QgsAbstractContentCacheBase(parent: QObject) Constructor for
QgsAbstractContentCacheBase
, with the specifiedparent
object.Methods
Runs additional checks on a network
reply
to ensure that the reply content is consistent with that required by the cache.Triggered after remote content (i.e. HTTP linked content at the given
url
) has been fetched.Signals
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
- checkReply(self, reply: QNetworkReply, path: str) bool ¶
Runs additional checks on a network
reply
to ensure that the reply content is consistent with that required by the cache.- Parameters:
reply (QNetworkReply) –
path (str) –
- Return type:
bool
- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- customEvent(self, QEvent)¶
- disconnectNotify(self, QMetaMethod)¶
- isSignalConnected(self, QMetaMethod) bool ¶
- onRemoteContentFetched(self, url: str, success: bool)¶
Triggered after remote content (i.e. HTTP linked content at the given
url
) has been fetched.The
success
argument will beTrue
if the content was successfully fetched, orFalse
if it was not fetched successfully.- Parameters:
url (str) –
success (bool) –
- receivers(self, PYQT_SIGNAL) int ¶
- remoteContentFetched¶
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
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- timerEvent(self, QTimerEvent)¶