GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
qif-parse.h
1 /*
2  * qif-parse.h -- routines for parsing pieces of a QIF file
3  *
4  * Written By: Derek Atkins <[email protected]>
5  * Copyright (c) 2003 Derek Atkins <[email protected]>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 2 of
10  * the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, contact:
19  *
20  * Free Software Foundation Voice: +1-617-542-5942
21  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
22  * Boston, MA 02110-1301, USA [email protected]
23  */
24 
25 #ifndef QIF_PARSE_H
26 #define QIF_PARSE_H
27 
28 #include "qif-import.h"
29 
30 void qif_register_handler(QifType type, QifHandler handler);
31 void qif_parse_bangtype(QifContext ctx, const char *line);
32 
33 gboolean
34 qif_parse_split_category(const char* str,
35  char** cat, gboolean *cat_is_acct, char** cat_class,
36  char** miscx_cat, gboolean *miscx_cat_is_acct,
37  char **miscx_class);
38 
39 gboolean qif_parse_numeric(QifLine line, gnc_numeric *num);
40 QifRecnFlag qif_parse_cleared(QifLine line);
41 QifAction qif_parse_action(QifLine line);
42 
43 /* The caller should never destroy this list */
44 GList * qif_parse_acct_type(const char *str, gint lineno);
45 GList * qif_parse_acct_type_guess(QifType type);
46 
47 /* Parse all objects */
48 void qif_parse_all(QifContext ctx, gpointer ui_args);
49 
50 #endif /* QIF_PARSE_H */