GnuCash  5.6-150-g038405b370+
import-settings.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 \********************************************************************/
28 #ifndef GNC_GEN_SETTINGS_H
29 #define GNC_GEN_SETTINGS_H
30 
31 #include "import-utilities.h"
32 
33 #ifdef __cplusplus
34 extern "C"
35 {
36 #endif
37 
38 typedef struct _genimportsettings GNCImportSettings;
39 
40 /************************************************************************
41  * Getter/Setter Functions for the Data Types.
42  ************************************************************************/
43 
44 
48 GNCImportSettings *
50 
52 void gnc_import_Settings_delete (GNCImportSettings *settings);
53 
54 
57 
62 double
63 gnc_import_Settings_get_fuzzy_amount (GNCImportSettings *settings);
64 
67 gboolean gnc_import_Settings_get_action_skip_enabled (GNCImportSettings *settings);
68 
71 gboolean gnc_import_Settings_get_action_add_enabled (GNCImportSettings *settings);
72 
75 gboolean gnc_import_Settings_get_action_update_enabled (GNCImportSettings *settings);
76 
79 gboolean gnc_import_Settings_get_action_clear_enabled (GNCImportSettings *settings);
80 
83 gint gnc_import_Settings_get_clear_threshold (GNCImportSettings *settings);
84 
87 gint gnc_import_Settings_get_add_threshold (GNCImportSettings *settings);
88 
91 gint gnc_import_Settings_get_display_threshold (GNCImportSettings *settings);
92 
93 gint gnc_import_Settings_get_date_threshold (GNCImportSettings *settings);
94 
95 gint gnc_import_Settings_get_date_not_threshold (GNCImportSettings *settings);
96 
106 void gnc_import_Settings_set_match_date_hardlimit (GNCImportSettings *settings, gint match_date_hardlimit);
108 gint gnc_import_Settings_get_match_date_hardlimit (const GNCImportSettings *settings);
109 
112 #ifdef __cplusplus
113 }
114 #endif
115 
118 #endif
gint gnc_import_Settings_get_clear_threshold(GNCImportSettings *settings)
Return the selected threshold.
GNCImportSettings * gnc_import_Settings_new(void)
Allocates a new GNCImportSettings object, and initialize it with the appropriate user prefs...
gboolean gnc_import_Settings_get_action_add_enabled(GNCImportSettings *settings)
Return the selected action is enable state.
gint gnc_import_Settings_get_display_threshold(GNCImportSettings *settings)
Return the selected threshold.
void gnc_import_Settings_delete(GNCImportSettings *settings)
Destructor.
gint gnc_import_Settings_get_match_date_hardlimit(const GNCImportSettings *s)
Returns the hard-limiting number of days that a matching split may differ.
gboolean gnc_import_Settings_get_action_clear_enabled(GNCImportSettings *settings)
Return the selected action is enable state.
void gnc_import_Settings_set_match_date_hardlimit(GNCImportSettings *s, gint m)
double gnc_import_Settings_get_fuzzy_amount(GNCImportSettings *settings)
Return the allowed amount range for fuzzy amount matching.
gboolean gnc_import_Settings_get_action_update_enabled(GNCImportSettings *settings)
Return the selected action is enable state.
Utility functions for writing import modules.
gboolean gnc_import_Settings_get_action_skip_enabled(GNCImportSettings *settings)
Return the selected action is enable state.
gint gnc_import_Settings_get_add_threshold(GNCImportSettings *settings)
Return the selected threshold.