GnuCash 2.4.99
gnc-html-history.h
00001 /********************************************************************
00002  * gnc-html-history.h -- keep a HTML history                        *
00003  * Copyright (C) 2000 Bill Gribble <grib@billgribble.com>           *
00004  *                                                                  *
00005  * This program is free software; you can redistribute it and/or    *
00006  * modify it under the terms of the GNU General Public License as   *
00007  * published by the Free Software Foundation; either version 2 of   *
00008  * the License, or (at your option) any later version.              *
00009  *                                                                  *
00010  * This program is distributed in the hope that it will be useful,  *
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00013  * GNU General Public License for more details.                     *
00014  *                                                                  *
00015  * You should have received a copy of the GNU General Public License*
00016  * along with this program; if not, contact:                        *
00017  *                                                                  *
00018  * Free Software Foundation           Voice:  +1-617-542-5942       *
00019  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00020  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00021  ********************************************************************/
00022 
00023 #ifndef GNC_HTML_HISTORY_H
00024 #define GNC_HTML_HISTORY_H
00025 
00026 typedef struct _gnc_html_history_node gnc_html_history_node;
00027 typedef struct _gnc_html_history gnc_html_history;
00028 
00029 #include "gnc-html.h"
00030 
00031 struct _gnc_html_history_node
00032 {
00033     URLType type;
00034     gchar   * location;
00035     gchar   * label;
00036 };
00037 
00038 typedef void (* gnc_html_history_destroy_cb)(gnc_html_history_node * n,
00039         gpointer user_data);
00040 
00041 gnc_html_history      * gnc_html_history_new(void);
00042 void                    gnc_html_history_destroy(gnc_html_history * hist);
00043 
00044 void                    gnc_html_history_append(gnc_html_history * h,
00045         gnc_html_history_node * n);
00046 gnc_html_history_node * gnc_html_history_get_current(gnc_html_history * h);
00047 gnc_html_history_node * gnc_html_history_forward(gnc_html_history * h);
00048 gnc_html_history_node * gnc_html_history_back(gnc_html_history * h);
00049 int                     gnc_html_history_forward_p(gnc_html_history * h);
00050 int                     gnc_html_history_back_p(gnc_html_history * h);
00051 void  gnc_html_history_set_node_destroy_cb(gnc_html_history * h,
00052         gnc_html_history_destroy_cb cb,
00053         gpointer cb_data);
00054 
00055 gnc_html_history_node * gnc_html_history_node_new(URLType type,
00056         const gchar * location,
00057         const gchar * label);
00058 
00059 void                    gnc_html_history_node_destroy(gnc_html_history_node *
00060         node);
00061 
00062 
00063 #endif
00064 
00065 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines