class KHTMLPageCache

Singleton Object that handles a binary cache on top of the http cache management of kio. More...

Definition#include <khtml_pagecache.h>
InheritsQObject [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods


Detailed Description

Singleton Object that handles a binary cache on top of the http cache management of kio.

A limited number of HTML pages are stored in this cache. This cache is used for the history and operations like "view source". These operations always want to use the original document and don't want to fetch the data from the network again.

It operates completely independent from the kio_http cache.

KHTMLPageCacheself ()

[static]

static "constructor".

Returns: returns a pointer to the cache, if it exists. creates a new cache otherwise.

 ~KHTMLPageCache ()

long  createCacheEntry ()

Create a new cache entry.

Returns: a cache entry ID is returned.

void  addData (long id, const QByteArray &data)

Add data to the cache entry with id id.

void  endData (long id)

Signal end of data for the cache entry with id id. After calling this the entry is marked valid

void  cancelEntry (long id)

Cancel the entry.

bool  isValid (long id)

Returns: true when the cache entry with id is still valid. and can be accessed for reading.

void  fetchData (long id, QObject *recvObj, const char *recvSlot)

Fetch data for cache entry id and send it to slot recvSlot in the object recvObj

void  cancelFetch (QObject *recvObj)

Cancel sending data to recvObj

void  saveData (long id, QDataStream *str)

Save the data of cache entry id to the datastream str


Generated by: marc@yogi on Tue Mar 27 13:08:56 2001, using kdoc 2.0a48.