GnuCash  4.12-75-g66025ae738+
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 typedef struct _genimportsettings GNCImportSettings;
34 
35 /************************************************************************
36  * Getter/Setter Functions for the Data Types.
37  ************************************************************************/
38 
39 
43 GNCImportSettings *
45 
47 void gnc_import_Settings_delete (GNCImportSettings *settings);
48 
49 
52 
57 double
58 gnc_import_Settings_get_fuzzy_amount (GNCImportSettings *settings);
59 
62 gboolean gnc_import_Settings_get_action_skip_enabled (GNCImportSettings *settings);
63 
66 gboolean gnc_import_Settings_get_action_add_enabled (GNCImportSettings *settings);
67 
70 gboolean gnc_import_Settings_get_action_update_enabled (GNCImportSettings *settings);
71 
74 gboolean gnc_import_Settings_get_action_clear_enabled (GNCImportSettings *settings);
75 
78 gint gnc_import_Settings_get_clear_threshold (GNCImportSettings *settings);
79 
82 gint gnc_import_Settings_get_add_threshold (GNCImportSettings *settings);
83 
86 gint gnc_import_Settings_get_display_threshold (GNCImportSettings *settings);
87 
88 gint gnc_import_Settings_get_date_threshold (GNCImportSettings *settings);
89 
90 gint gnc_import_Settings_get_date_not_threshold (GNCImportSettings *settings);
91 
101 void gnc_import_Settings_set_match_date_hardlimit (GNCImportSettings *settings, gint match_date_hardlimit);
103 gint gnc_import_Settings_get_match_date_hardlimit (const GNCImportSettings *settings);
104 
108 #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.