KHTML
khtml_pagecache.cpp
Go to the documentation of this file.
82 QTemporaryFile* f=new QTemporaryFile(KStandardDirs::locateLocal("tmp", "")+"khtmlcacheXXXXXX.tmp");
static QIODevice * deviceForFile(const QString &fileName, const QString &mimetype=QString(), bool forceFilter=false)
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. ...
Definition: khtml_pagecache.cpp:206
void clear()
virtual bool atEnd() const
bool remove()
void emitData(const QByteArray &data)
#define K_GLOBAL_STATIC(TYPE, NAME)
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
virtual void close()
Definition: khtml_pagecache.h:113
void setAutoRemove(bool b)
QByteArray readAll()
void cancelFetch(QObject *recvObj)
Cancel sending data to recvObj.
Definition: khtml_pagecache.cpp:224
qint64 read(char *data, qint64 maxSize)
void remove()
bool hasNext() const
QString fileName() const
Singleton Object that handles a binary cache on top of the http cache management of kio...
Definition: khtml_pagecache.h:38
static QString locateLocal(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
T & next()
int writeRawData(const char *s, int len)
void saveData(long id, QDataStream *str)
Save the data of cache entry id to the datastream str.
Definition: khtml_pagecache.cpp:267
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void addData(long id, const QByteArray &data)
Add data to the cache entry with id id.
Definition: khtml_pagecache.cpp:163
bool open()
~KHTMLPageCacheDelivery()
Definition: khtml_pagecache.cpp:289
void endData(long id)
Signal end of data for the cache entry with id id.
Definition: khtml_pagecache.cpp:172
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.