man Zim::History () - History object for zim

NAME

Zim::History - History object for zim

SYNOPSIS

        use Zim::History;

        my $hist = Zim::History->new($HIST_FILE, $PAGEVIEW, 20);
        my $page_record = $hist->get_current;

DESCRIPTION

This object manages zim's page history.

METHODS

Constructor. Takes the name of the cache file as an argument and reads this cache file. The second argument is the pageview object. When a new record is made for the current page the CWget_state() method is called on this object to get state information that needs to be saved. Third argument is the maximum number of items in the history. Read the cache file. Write the cache file. Give the page object that is going to be displayed in the PageView. Set a new current before updating the PageView so the History object has time to save the state of the PageView if necessary. Returns the curernt history object. When possible asks the PageView objects for the current state information. This method matches the namespace of the current page to that of pages in the history. The result can be used as a namespace stack. Returns two integers representing the number of items in the back stack and the number of items in the forward stack. Returns a list of records of pages we can go back to. Returns a list of records of pages we can go forward to. Go back one or more steps in the history stack. Go forward one or more steps in the history stack. Returns the history record for a given page object or undef.

AUTHOR

Jaap Karssenberg (Pardus) <pardus@cpan.org>

Copyright (c) 2005 Jaap G Karssenberg. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO