khtml::Cache
#include <loader.h>
Static Public Member Functions | |
static KHTML_EXPORT void | clear () |
static KHTML_EXPORT void | flush (bool force=false) |
static KHTML_EXPORT void | init () |
static Loader * | loader () |
static void | preloadScript (const QString &url, const QString &script_data) |
static void | preloadStyleSheet (const QString &url, const QString &stylesheet_data) |
static void | removeCacheEntry (CachedObject *object) |
static void | setSize (int bytes) |
static int | size () |
static void | statistics () |
Static Public Attributes | |
static QPixmap * | blockedPixmap |
static QPixmap * | brokenPixmap |
static int | cacheSize |
static QPixmap * | nullPixmap |
Detailed Description
Provides a cache/loader for objects needed for displaying the html page. At the moment these are stylesheets, scripts and images
Member Function Documentation
◆ clear()
|
static |
clears the cache Warning: call this only at the end of your program, to clean up memory (useful for finding memory holes)
Definition at line 1502 of file loader.cpp.
◆ init()
|
static |
init the cache in case it's not already.
This needs to get called once before using it.
Definition at line 1470 of file loader.cpp.
◆ preloadScript()
Pre-loads a script into the cache.
Definition at line 1603 of file loader.cpp.
◆ preloadStyleSheet()
Ask the cache for some url.
Will return a cachedObject, and load the requested data in case it's not cached if the DocLoader is zero, the url must be full-qualified. Otherwise, it is automatically base-url expanded Pre-loads a stylesheet into the cache.
Definition at line 1593 of file loader.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Aug 11 2022 03:57:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.