GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
csv-account-import.h
1 /*******************************************************************\
2  * csv-account-import.h -- Account importing from file *
3  * *
4  * Copyright (C) 2012 Robert Fewell *
5  * *
6  * Based on code from bi_import written by Sebastian Held and *
7  * Mike Evans. *
8  * *
9  * This program is free software; you can redistribute it and/or *
10  * modify it under the terms of the GNU General Public License as *
11  * published by the Free Software Foundation; either version 2 of *
12  * the License, or (at your option) any later version. *
13  * *
14  * This program is distributed in the hope that it will be useful, *
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
17  * GNU General Public License for more details. *
18  * *
19  * You should have received a copy of the GNU General Public License*
20  * along with this program; if not, contact: *
21  * *
22  * Free Software Foundation Voice: +1-617-542-5942 *
23  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
24  * Boston, MA 02110-1301, USA [email protected] *
25 \********************************************************************/
26 
27 #ifndef CSV_ACCOUNT_IMPORT_H
28 #define CSV_ACCOUNT_IMPORT_H
29 
30 #include <glib.h>
31 #include <gtk/gtk.h>
32 
34 
35 enum _csv_import_result
36 {
37  RESULT_OK,
38  RESULT_OPEN_FAILED,
39  RESULT_ERROR_IN_REGEXP,
40  MATCH_FOUND,
41 };
42 typedef enum _csv_import_result csv_import_result;
43 
44 csv_import_result
45 csv_import_read_file (const gchar *filename, const gchar *parser_regexp, GtkListStore *store, guint max_rows );
46 
47 void csv_account_import (CsvImportInfo *info);
48 
49 #endif /* CSV_ACCOUNT_IMPORT_H */
50 
CSV Import Assistant.