GnuCash 2.4.99
import-match-map.h
Go to the documentation of this file.
00001 /********************************************************************\
00002  * This program is free software; you can redistribute it and/or    *
00003  * modify it under the terms of the GNU General Public License as   *
00004  * published by the Free Software Foundation; either version 2 of   *
00005  * the License, or (at your option) any later version.              *
00006  *                                                                  *
00007  * This program is distributed in the hope that it will be useful,  *
00008  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00009  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00010  * GNU General Public License for more details.                     *
00011  *                                                                  *
00012  * You should have received a copy of the GNU General Public License*
00013  * along with this program; if not, contact:                        *
00014  *                                                                  *
00015  * Free Software Foundation           Voice:  +1-617-542-5942       *
00016  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00017  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00018 \********************************************************************/
00029 #ifndef GNC_IMPORT_MATCH_MAP_H
00030 #define GNC_IMPORT_MATCH_MAP_H
00031 
00032 typedef struct _GncImportMatchMap GncImportMatchMap;
00033 
00034 #include "Account.h"
00035 
00038 GncImportMatchMap * gnc_imap_create_from_account (Account *acc);
00039 GncImportMatchMap * gnc_imap_create_from_book (QofBook *book);
00044 void gnc_imap_destroy (GncImportMatchMap *imap);
00045 
00047 void gnc_imap_clear (GncImportMatchMap *imap);
00048 
00050 Account* gnc_imap_find_account(GncImportMatchMap *imap, const char* category,
00051                                const char *key);
00052 
00056 void gnc_imap_add_account (GncImportMatchMap *imap, const char *category,
00057                            const char *key, Account *acc);
00058 
00061 Account* gnc_imap_find_account_bayes (GncImportMatchMap *imap, GList* tokens);
00062 
00066 void gnc_imap_add_account_bayes (GncImportMatchMap *imap, GList* tokens,
00067                                  Account *acc);
00068 
00069 
00078 #define GNCIMPORT_DESC  "desc"
00079 #define GNCIMPORT_MEMO  "memo"
00080 #define GNCIMPORT_PAYEE "payee"
00081 
00083 #endif /* GNC_IMPORT_MATCH_MAP_H */
00084 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines