GnuCash  5.6-150-g038405b370+
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 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 typedef GHashTable GNCImportPendingMatches;
37 
38 typedef enum _import_match_type {
39  GNCImportPending_NONE,
40  GNCImportPending_AUTO,
41  GNCImportPending_MANUAL
42 } GNCImportPendingMatchType;
43 
44 GNCImportPendingMatches * gnc_import_PendingMatches_new(void);
45 
46 void gnc_import_PendingMatches_delete(GNCImportPendingMatches *map);
47 
48 void
49 gnc_import_PendingMatches_add_match(GNCImportPendingMatches *map,
50  GNCImportMatchInfo *match_info,
51  gboolean selected_manually);
52 
53 void
54 gnc_import_PendingMatches_remove_match(GNCImportPendingMatches *map,
55  GNCImportMatchInfo *match_info,
56  gboolean selected_manually);
57 
58 GNCImportPendingMatchType
59 gnc_import_PendingMatches_get_match_type(GNCImportPendingMatches *map,
60  GNCImportMatchInfo *match_info);
61 
62 const char *
63 gnc_import_PendingMatches_get_type_str(GNCImportPendingMatchType type);
64 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 #endif
70 
Generic importer backend interface.