Getting the document from the cache
David Faure
faure at kde.org
Sun Jan 30 21:02:58 GMT 2005
On Sunday 30 January 2005 18:25, Andras Mantia wrote:
> 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;
Why does the method return a QString anyway? There are encoding problems AFAICS,
it should return a QCString or QByteArray. And then the stream can be created on
the array itself directly, no?
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kfm-devel
mailing list