Internel History Implementation to KHTML

David Faure faure at kde.org
Wed Dec 17 11:51:50 GMT 2003


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