1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2014 Maxime DOYEN
4 * This file is part of HomeBank.
6 * HomeBank is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * HomeBank is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef __HOMEBANK_IMPORT_H__
21 #define __HOMEBANK_IMPORT_H__
23 #define QIF_UNKNOW_ACCOUNT_NAME "(unknown)"
37 typedef struct _OfxContext OfxContext
;
42 gboolean curr_acc_isnew
;
46 typedef struct _ImportContext ImportContext
;
49 GList
*trans_list
; // trn storage
50 gint cnt_initial_acc
; //max key account when start
56 const gchar
*encoding
;
65 GtkWidget
*pages
[NUM_PAGE
];
69 GdkPixbuf
*head_pixbuf
;
70 GdkPixbuf
*side_pixbuf
;
72 GtkWidget
*filechooser
;
77 GtkWidget
*TX_filepath
;
78 GtkWidget
*TX_filename
;
79 GtkWidget
*TX_encoding
;
80 GtkWidget
*TX_filedetails
;
83 GtkWidget
*GR_options
;
84 GtkWidget
*GR_duplicate
;
89 GtkWidget
*BT_refresh
;
90 GtkWidget
*CY_dateorder
;
95 GtkWidget
*imported_ope
;
96 GtkWidget
*duplicat_ope
;
98 GtkWidget
*TX_acc_upd
;
99 GtkWidget
*TX_acc_new
;
100 GtkWidget
*TX_trn_imp
;
101 GtkWidget
*TX_trn_nop
;
102 GtkWidget
*TX_trn_asg
;
108 /* count imported items */
124 struct import_target_data
126 GtkWidget
*getwidget1
;
127 GtkWidget
*getwidget2
;
132 GtkWidget
*ui_import_window_new (void);
133 Account
*import_create_account(gchar
*name
, gchar
*number
);
134 const gchar
*homebank_file_getencoding(gchar
*filename
);
135 gchar
*homebank_utf8_ensure(gchar
*buffer
);