QGIS API Documentation  3.13.0-Master (7f54853aae)
Signals | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
QgsAbstractContentCacheBase Class Reference

A QObject derived base class for QgsAbstractContentCache. More...

#include <qgsabstractcontentcache.h>

Inheritance diagram for QgsAbstractContentCacheBase:
Inheritance graph
[legend]

Signals

void remoteContentFetched (const QString &url)
 Emitted when the cache has finished retrieving content from a remote url. More...
 

Public Member Functions

 QgsAbstractContentCacheBase (QObject *parent)
 Constructor for QgsAbstractContentCacheBase, with the specified parent object. More...
 

Protected Slots

virtual void onRemoteContentFetched (const QString &url, bool success)
 Triggered after remote content (i.e. More...
 

Protected Member Functions

virtual bool checkReply (QNetworkReply *reply, const QString &path) const
 Runs additional checks on a network reply to ensure that the reply content is consistent with that required by the cache. More...
 

Detailed Description

A QObject derived base class for QgsAbstractContentCache.

Required because template based class (such as QgsAbstractContentCache) cannot use the Q_OBJECT macro.

Since
QGIS 3.6

Definition at line 130 of file qgsabstractcontentcache.h.

Constructor & Destructor Documentation

◆ QgsAbstractContentCacheBase()

QgsAbstractContentCacheBase::QgsAbstractContentCacheBase ( QObject *  parent)

Constructor for QgsAbstractContentCacheBase, with the specified parent object.

Definition at line 33 of file qgsabstractcontentcache.cpp.

Member Function Documentation

◆ checkReply()

virtual bool QgsAbstractContentCacheBase::checkReply ( QNetworkReply *  reply,
const QString &  path 
) const
inlineprotectedvirtual

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

Reimplemented in QgsSvgCache.

Definition at line 154 of file qgsabstractcontentcache.h.

◆ onRemoteContentFetched

void QgsAbstractContentCacheBase::onRemoteContentFetched ( const QString &  url,
bool  success 
)
protectedvirtualslot

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.

Reimplemented in QgsAbstractContentCache< T >, QgsAbstractContentCache< QgsSvgCacheEntry >, and QgsAbstractContentCache< QgsImageCacheEntry >.

Definition at line 38 of file qgsabstractcontentcache.cpp.

◆ remoteContentFetched

void QgsAbstractContentCacheBase::remoteContentFetched ( const QString &  url)
signal

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


The documentation for this class was generated from the following files: