Search for usage in LXR

#include <loader.h>

Inheritance diagram for khtml::CachedObject:

Public Types

enum  PreloadResult { PreloadNotReferenced = 0, PreloadReferenced, PreloadReferencedWhileLoading, PreloadReferencedWhileComplete }
enum  Status {
  Unknown, New, Pending, Persistent,
enum  Type {
  Image, CSSStyleSheet, Script, Sound,

Public Member Functions

 CachedObject (const DOM::DOMString &url, Type type, KIO::CacheControl _cachePolicy, int size)
QString accept () const
int accessCount () const
KIO::CacheControl cachePolicy () const
bool canDelete () const
QTextCodeccodecForBuffer (const QString &charset, const QByteArray &buffer) const
int count () const
virtual void data (QBuffer &buffer, bool eof)=0
void decreasePreloadCount ()
virtual void deref (CachedObjectClient *consumer)
virtual void error (int err, const char *text)=0
virtual void finish ()
bool free () const
bool hadError () const
void increasePreloadCount ()
bool isExpired () const
bool isLoaded () const
bool isPreloaded () const
QString mimetype () const
PreloadResult preloadResult () const
virtual void ref (CachedObjectClient *consumer)
void setAccept (const QString &_accept)
virtual void setCharset (const QString &)
void setExpireDate (const QDateTime &_expireDate)
void setProspectiveRequest ()
void setRequest (Request *_request)
void setStatus (Status s)
int size () const
Status status () const
Type type () const
const DOM::DOMStringurl () const

Protected Member Functions

void setSize (int size)

Protected Attributes

QString m_accept
int m_accessCount
KIO::CacheControl m_cachePolicy
QHash< CachedObjectClient *, CachedObjectClient * > m_clients
bool m_deleted: 1
QDateTime m_expireDate
bool m_free: 1
bool m_hadError: 1
bool m_loading: 1
QString m_mimetype
unsigned m_preloadCount
PreloadResult m_preloadResult: 3
bool m_prospectiveRequest: 1
int m_size
Status m_status
Type m_type
DOM::DOMString m_url
bool m_wasBlocked: 1

Detailed Description

A cached object. Classes who want to use this object should derive from CachedObjectClient, to get the function calls in case the requested data has arrived.

This class also does the actual communication with kio and loads the file.

Definition at line 77 of file loader.h.

Member Function Documentation

◆ accept()

QString khtml::CachedObject::accept ( ) const

List of acceptable mimetypes separated by ",".

A mimetype may contain a wildcard.

Definition at line 226 of file loader.h.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 04:06:27 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.