GnuCash  5.6-150-g038405b370+
gnc-html-history.h
1 /********************************************************************
2  * gnc-html-history.h -- keep a HTML history *
3  * Copyright (C) 2000 Bill Gribble <grib@billgribble.com> *
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 gnu@gnu.org *
21  ********************************************************************/
22 
23 #ifndef GNC_HTML_HISTORY_H
24 #define GNC_HTML_HISTORY_H
25 
26 typedef struct _gnc_html_history_node gnc_html_history_node;
27 typedef struct _gnc_html_history gnc_html_history;
28 
29 #include "gnc-html.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
36 {
37  char* type;
38  gchar * location;
39  gchar * label;
40 };
41 
42 typedef void (* gnc_html_history_destroy_cb)(gnc_html_history_node * n,
43  gpointer user_data);
44 
45 gnc_html_history * gnc_html_history_new(void);
46 void gnc_html_history_destroy(gnc_html_history * hist);
47 
48 void gnc_html_history_append(gnc_html_history * h,
49  gnc_html_history_node * n);
50 gnc_html_history_node * gnc_html_history_get_current(gnc_html_history * h);
51 gnc_html_history_node * gnc_html_history_forward(gnc_html_history * h);
52 gnc_html_history_node * gnc_html_history_back(gnc_html_history * h);
53 int gnc_html_history_forward_p(gnc_html_history * h);
54 int gnc_html_history_back_p(gnc_html_history * h);
55 void gnc_html_history_set_node_destroy_cb(gnc_html_history * h,
56  gnc_html_history_destroy_cb cb,
57  gpointer cb_data);
58 
59 gnc_html_history_node * gnc_html_history_node_new(URLType type,
60  const gchar * location,
61  const gchar * label);
62 
63 void gnc_html_history_node_destroy(gnc_html_history_node *
64  node);
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 
71 #endif
72 
73