khtml::CachedScript

khtml::CachedScript Class Reference

#include <loader.h>

Inheritance diagram for khtml::CachedScript:

Public Member Functions

 CachedScript (DocLoader *dl, const DOM::DOMString &url, KIO::CacheControl cachePolicy, const char *accept)
 
 CachedScript (const DOM::DOMString &url, const QString &script_data)
 
void checkNotify ()
 
void data (QBuffer &buffer, bool eof) override
 
void error (int err, const char *text) override
 
bool isLoaded () const
 
void ref (CachedObjectClient *consumer) override
 
const DOM::DOMStringscript () const
 
void setCharset (const QString &charset) override
 
- Public Member Functions inherited from khtml::CachedObject
 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
 
void decreasePreloadCount ()
 
virtual void deref (CachedObjectClient *consumer)
 
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
 
void setAccept (const QString &_accept)
 
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 Attributes

QString m_charset
 
DOM::DOMString m_script
 
- Protected Attributes inherited from khtml::CachedObject
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
 
Requestm_request
 
int m_size
 
Status m_status
 
Type m_type
 
DOM::DOMString m_url
 
bool m_wasBlocked: 1
 

Additional Inherited Members

- Public Types inherited from khtml::CachedObject
enum  PreloadResult { PreloadNotReferenced = 0, PreloadReferenced, PreloadReferencedWhileLoading, PreloadReferencedWhileComplete }
 
enum  Status {
  Unknown, New, Pending, Persistent,
  Cached
}
 
enum  Type {
  Image, CSSStyleSheet, Script, Sound,
  Font
}
 
- Protected Member Functions inherited from khtml::CachedObject
void setSize (int size)
 

Detailed Description

a cached script

Definition at line 322 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-2020 The KDE developers.
Generated on Fri Aug 7 2020 22:44:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.