/* HomeBank -- Free, easy, personal accounting for everyone. * Copyright (C) 1995-2014 Maxime DOYEN * * This file is part of HomeBank. * * HomeBank is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * HomeBank is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef __HB_QIF__H__ #define __HB_QIF__H__ typedef struct _QifContext QifContext; typedef struct _qif_split QIFSplit; typedef struct _qif_tran QIF_Tran; struct _QifContext { GList *q_acc; GList *q_cat; GList *q_pay; GList *q_tra; gboolean is_ccard; }; struct _qif_split { gchar *category; gdouble amount; gchar *memo; }; struct _qif_tran { gchar *account; gchar *date; gdouble amount; gboolean reconciled; gchar *info; gchar *payee; gchar *memo; gchar *category; gint nb_splits; QIFSplit splits[TXN_MAX_SPLIT]; }; enum QIF_Type { QIF_NONE, QIF_HEADER, QIF_ACCOUNT, QIF_CATEGORY, QIF_CLASS, QIF_MEMORIZED, QIF_TRANSACTION, QIF_SECURITY, QIF_PRICES }; GList *account_import_qif(gchar *filename, ImportContext *ictx); gdouble hb_qif_parser_get_amount(gchar *string); #endif