#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 Loaderloader ()
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 QPixmapblockedPixmap
static QPixmapbrokenPixmap
static int cacheSize
static QPixmapnullPixmap

Detailed Description

Provides a cache/loader for objects needed for displaying the html page. At the moment these are stylesheets, scripts and images

Definition at line 656 of file loader.h.

Member Function Documentation

void Cache::clear ( )

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.

void Cache::init ( )

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.

void Cache::preloadScript ( const QString url,
const QString script_data 

Pre-loads a script into the cache.

Definition at line 1603 of file loader.cpp.

void Cache::preloadStyleSheet ( const QString url,
const QString stylesheet_data 

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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 27 2021 22:45:50 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.