QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
A QObject derived base class for QgsAbstractContentCache. More...
#include <qgsabstractcontentcache.h>
Signals | |
void | remoteContentFetched (const QString &url) |
Emitted when the cache has finished retrieving content from a remote url. | |
Public Member Functions | |
QgsAbstractContentCacheBase (QObject *parent) | |
Constructor for QgsAbstractContentCacheBase, with the specified parent object. | |
Protected Slots | |
virtual void | onRemoteContentFetched (const QString &url, bool success) |
Triggered after remote content (i.e. | |
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. | |
A QObject derived base class for QgsAbstractContentCache.
Required because template based class (such as QgsAbstractContentCache) cannot use the Q_OBJECT macro.
Definition at line 134 of file qgsabstractcontentcache.h.
QgsAbstractContentCacheBase::QgsAbstractContentCacheBase | ( | QObject * | parent | ) |
Constructor for QgsAbstractContentCacheBase, with the specified parent object.
Definition at line 33 of file qgsabstractcontentcache.cpp.
|
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 158 of file qgsabstractcontentcache.h.
|
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< QgsImageCacheEntry >, QgsAbstractContentCache< QgsSourceCacheEntry >, and QgsAbstractContentCache< QgsSvgCacheEntry >.
Definition at line 38 of file qgsabstractcontentcache.cpp.
|
signal |
Emitted when the cache has finished retrieving content from a remote url.