GnuCash  4.13-177-g21dd8aa057+
import-pending-matches.h
Go to the documentation of this file.
1 /********************************************************************\
2  * This program is free software; you can redistribute it and/or *
3  * modify it under the terms of the GNU General Public License as *
4  * published by the Free Software Foundation; either version 2 of *
5  * the License, or (at your option) any later version. *
6  * *
7  * This program is distributed in the hope that it will be useful, *
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
10  * GNU General Public License for more details. *
11  * *
12  * You should have received a copy of the GNU General Public License*
13  * along with this program; if not, contact: *
14  * *
15  * Free Software Foundation Voice: +1-617-542-5942 *
16  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
17  * Boston, MA 02110-1301, USA gnu@gnu.org *
18  \ *********************************************************************/
26 #ifndef IMPORT_PENDING_MATCHES_H
27 #define IMPORT_PENDING_MATCHES_H
28 
29 #include <glib.h>
30 #include "import-backend.h"
31 
32 typedef GHashTable GNCImportPendingMatches;
33 
34 typedef enum _import_match_type {
35  GNCImportPending_NONE,
36  GNCImportPending_AUTO,
37  GNCImportPending_MANUAL
38 } GNCImportPendingMatchType;
39 
40 GNCImportPendingMatches * gnc_import_PendingMatches_new(void);
41 
42 void gnc_import_PendingMatches_delete(GNCImportPendingMatches *map);
43 
44 void
45 gnc_import_PendingMatches_add_match(GNCImportPendingMatches *map,
46  GNCImportMatchInfo *match_info,
47  gboolean selected_manually);
48 
49 void
50 gnc_import_PendingMatches_remove_match(GNCImportPendingMatches *map,
51  GNCImportMatchInfo *match_info,
52  gboolean selected_manually);
53 
54 GNCImportPendingMatchType
55 gnc_import_PendingMatches_get_match_type(GNCImportPendingMatches *map,
56  GNCImportMatchInfo *match_info);
57 
58 const char *
59 gnc_import_PendingMatches_get_type_str(GNCImportPendingMatchType type);
60 
61 #endif
62 
Generic importer backend interface.