GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-html-history.h
1 /********************************************************************
2  * gnc-html-history.h -- keep a HTML history *
3  * Copyright (C) 2000 Bill Gribble <[email protected]> *
4  * *
5  * This program is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU General Public License as *
7  * published by the Free Software Foundation; either version 2 of *
8  * the License, or (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License*
16  * along with this program; if not, contact: *
17  * *
18  * Free Software Foundation Voice: +1-617-542-5942 *
19  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
20  * Boston, MA 02110-1301, USA [email protected] *
21  ********************************************************************/
22 
23 #ifndef GNC_HTML_HISTORY_H
24 #define GNC_HTML_HISTORY_H
25 
27 typedef struct _gnc_html_history gnc_html_history;
28 
29 #include "gnc-html.h"
30 
32 {
33  URLType type;
34  gchar * location;
35  gchar * label;
36 };
37 
38 typedef void (* gnc_html_history_destroy_cb)(gnc_html_history_node * n,
39  gpointer user_data);
40 
41 gnc_html_history * gnc_html_history_new(void);
42 void gnc_html_history_destroy(gnc_html_history * hist);
43 
44 void gnc_html_history_append(gnc_html_history * h,
46 gnc_html_history_node * gnc_html_history_get_current(gnc_html_history * h);
47 gnc_html_history_node * gnc_html_history_forward(gnc_html_history * h);
48 gnc_html_history_node * gnc_html_history_back(gnc_html_history * h);
49 int gnc_html_history_forward_p(gnc_html_history * h);
50 int gnc_html_history_back_p(gnc_html_history * h);
51 void gnc_html_history_set_node_destroy_cb(gnc_html_history * h,
52  gnc_html_history_destroy_cb cb,
53  gpointer cb_data);
54 
55 gnc_html_history_node * gnc_html_history_node_new(URLType type,
56  const gchar * location,
57  const gchar * label);
58 
59 void gnc_html_history_node_destroy(gnc_html_history_node *
60  node);
61 
62 
63 #endif
64 
65