AW: Internel History Implementation to KHTML

Baumann, Thomas baumann at valudo.de
Wed Dec 17 13:10:56 GMT 2003


yes, i do mean going back and forward in history.

I had a look at the code you pointed me at and I think this could do it
(actually it will, cause Konqueror itself uses it ;))

browserExtension()->storeState() and restoreState() are the methods I need,
right??

ok, I am going to try this.

Thanks a lot,
Thomas

-----Ursprüngliche Nachricht-----
Von: David Faure [mailto:faure at kde.org]
Gesendet: Wednesday, December 17, 2003 12:52 PM
An: 'kfm-devel at kde.org'
Cc: Baumann, Thomas
Betreff: Re: Internel History Implementation to KHTML


On Wednesday 17 December 2003 12:02, Baumann, Thomas wrote:
> But now I have to implement some kind of internal history to the browser.
I
> simply use a pointer-list with HistoryItems (my own class holding a KURL
and
> the proper URLArgs). This works fine for non-frame-sites, but I am going
> crazy trying getting this to work with frames.
> 
> Could anybody tell me how to implement a simple internel history to
KHTML??
> I also had a look at Konqueror, but I do not have the chance to get
through
> these thousends of lines of code in the given time for the project.
> 
> I just saw the HistoryProvider in the API documentation, but I do not have
a
> clue how to use it. I mean, there is not even a holder for the URLArgs,
> neither a way of getting the inserted entries back! Or don't I need both
of
> it??

You're talking about the history that's used when pressing the "back" and
"forward"
buttons, right?

In that case read KonqView::createHistoryEntry() and
KonqView::updateHistoryEntry()
from kdebase/konqueror/konq_view.cc

-- 
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