Getting the document from the cache

Andras Mantia amantia at kde.org
Sun Jan 30 17:25:58 GMT 2005


John Tapsell wrote:

> dfaure said it would be fine to add such a function.  Feel free to
> implement it, or ask me to do it.

Attached. I don't know if this is the best (optimized) way to do it, though.
Is it possible to save the QDataStream to a QString? If I used:

QDataStream stream; 
KHTMLPageCache::self()->saveData(d->m_cacheId, &stream);
stream >> sourceStr;

it crashes on the last line.

Andras

-- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: khtml.diff
Type: text/x-diff
Size: 2192 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20050130/6d99424a/attachment.diff>


More information about the kfm-devel mailing list