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 specified parent object.

Methods

checkReply

Runs additional checks on a network reply to ensure that the reply content is consistent with that required by the cache.

childEvent

connectNotify

customEvent

disconnectNotify

isSignalConnected

onRemoteContentFetched

Triggered after remote content (i.e.

receivers

sender

senderSignalIndex

timerEvent

Signals

remoteContentFetched

Emitted when the cache has finished retrieving content from a remote url.

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 be True if the content was successfully fetched, or False if it was not fetched successfully.

Parameters
  • url (str) –

  • success (bool) –

receivers(self, PYQT_SIGNAL)int
remoteContentFetched

Emitted when the cache has finished retrieving content from a remote url. [signal]

Parameters

url (str) –

sender(self)QObject
senderSignalIndex(self)int
timerEvent(self, QTimerEvent)