QgsAbstractContentCacheBase class
A QObject derived base class for QgsAbstractContentCache.
Contents
Required because template based class (such as QgsAbstractContentCache) cannot use the Q_OBJECT macro.
Derived classes
-
template<class T>class QgsAbstractContentCache
- Abstract base class for file content caches, such as SVG or raster image caches.
-
template<class T>class QgsAbstractContentCache
- Abstract base class for file content caches, such as SVG or raster image caches.
-
template<class T>class QgsAbstractContentCache
- Abstract base class for file content caches, such as SVG or raster image caches.
Constructors, destructors, conversion operators
- QgsAbstractContentCacheBase(QObject* parent)
- Constructor for QgsAbstractContentCacheBase, with the specified parent object.
Signals
- void remoteContentFetched(const QString& url)
- Emitted when the cache has finished retrieving content from a remote url.
Protected functions
- auto checkReply(QNetworkReply* reply, const QString& path) const -> bool virtual
- Runs additional checks on a network reply to ensure that the reply content is consistent with that required by the cache.
Protected slots
- void onRemoteContentFetched(const QString& url, bool success) virtual
- Triggered after remote content (i.e.
Function documentation
void QgsAbstractContentCacheBase:: onRemoteContentFetched(const QString& url,
bool success) virtual protected slot
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.