GnuCash 2.4.99
qif-parse.h
00001 /*
00002  * qif-parse.h -- routines for parsing pieces of a QIF file
00003  *
00004  * Written By:  Derek Atkins  <derek@ihtfp.com>
00005  * Copyright (c) 2003 Derek Atkins <warlord@MIT.EDU>
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License as
00009  * published by the Free Software Foundation; either version 2 of
00010  * the License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, contact:
00019  *
00020  * Free Software Foundation           Voice:  +1-617-542-5942
00021  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
00022  * Boston, MA  02110-1301,  USA       gnu@gnu.org
00023  */
00024 
00025 #ifndef QIF_PARSE_H
00026 #define QIF_PARSE_H
00027 
00028 #include "qif-import.h"
00029 
00030 void qif_register_handler(QifType type, QifHandler handler);
00031 void qif_parse_bangtype(QifContext ctx, const char *line);
00032 
00033 gboolean
00034 qif_parse_split_category(const char* str,
00035                          char** cat, gboolean *cat_is_acct, char** cat_class,
00036                          char** miscx_cat, gboolean *miscx_cat_is_acct,
00037                          char **miscx_class);
00038 
00039 gboolean qif_parse_numeric(QifLine line, gnc_numeric *num);
00040 QifRecnFlag qif_parse_cleared(QifLine line);
00041 QifAction qif_parse_action(QifLine line);
00042 
00043 /* The caller should never destroy this list */
00044 GList * qif_parse_acct_type(const char *str, gint lineno);
00045 GList * qif_parse_acct_type_guess(QifType type);
00046 
00047 /* Parse all objects */
00048 void qif_parse_all(QifContext ctx, gpointer ui_args);
00049 
00050 #endif /* QIF_PARSE_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines