]> Dogcows Code - chaz/homebank/blob - src/imp_qif.h
import homebank-4.6.3
[chaz/homebank] / src / imp_qif.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2014 Maxime DOYEN
3 *
4 * This file is part of HomeBank.
5 *
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.
10 *
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.
15 *
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/>.
18 */
19
20 #ifndef __HB_QIF__H__
21 #define __HB_QIF__H__
22
23 typedef struct _QifContext QifContext;
24 typedef struct _qif_split QIFSplit;
25 typedef struct _qif_tran QIF_Tran;
26
27
28 struct _QifContext
29 {
30 GList *q_acc;
31 GList *q_cat;
32 GList *q_pay;
33 GList *q_tra;
34
35 gboolean is_ccard;
36 };
37
38 struct _qif_split
39 {
40 gchar *category;
41 gdouble amount;
42 gchar *memo;
43 };
44
45 struct _qif_tran
46 {
47 gchar *account;
48 gchar *date;
49 gdouble amount;
50 gboolean reconciled;
51 gchar *info;
52 gchar *payee;
53 gchar *memo;
54 gchar *category;
55
56 gint nb_splits;
57 QIFSplit splits[TXN_MAX_SPLIT];
58 };
59
60
61 enum QIF_Type
62 {
63 QIF_NONE,
64 QIF_HEADER,
65 QIF_ACCOUNT,
66 QIF_CATEGORY,
67 QIF_CLASS,
68 QIF_MEMORIZED,
69 QIF_TRANSACTION,
70 QIF_SECURITY,
71 QIF_PRICES
72 };
73
74
75 GList *account_import_qif(gchar *filename, ImportContext *ictx);
76 gdouble hb_qif_parser_get_amount(gchar *string);
77
78
79
80 #endif
This page took 0.033849 seconds and 4 git commands to generate.