mirror of https://github.com/Gnucash/gnucash
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
104 lines
4.0 KiB
104 lines
4.0 KiB
/********************************************************************\
|
|
* This program is free software; you can redistribute it and/or *
|
|
* modify it under the terms of the GNU General Public License as *
|
|
* published by the Free Software Foundation; either version 2 of *
|
|
* the License, or (at your option) any later version. *
|
|
* *
|
|
* This program is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
* GNU General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU General Public License*
|
|
* along with this program; if not, contact: *
|
|
* *
|
|
* Free Software Foundation Voice: +1-617-542-5942 *
|
|
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
|
|
* Boston, MA 02110-1301, USA gnu@gnu.org *
|
|
\********************************************************************/
|
|
/** @addtogroup Import_Export
|
|
@{ */
|
|
/**@file import-settings.h
|
|
\brief Import preference handling.
|
|
*User preference interface for
|
|
transaction matching (for both the gui and the backend)
|
|
\author Copyright (C) 2002 Benoit Grégoire
|
|
*/
|
|
|
|
#ifndef GNC_GEN_SETTINGS_H
|
|
#define GNC_GEN_SETTINGS_H
|
|
|
|
typedef struct _genimportsettings GNCImportSettings;
|
|
|
|
/************************************************************************
|
|
* Getter/Setter Functions for the Data Types.
|
|
************************************************************************/
|
|
|
|
|
|
|
|
/** Allocates a new GNCImportSettings object, and initialize it with
|
|
* the appropriate user prefs.
|
|
*/
|
|
GNCImportSettings *
|
|
gnc_import_Settings_new (void);
|
|
|
|
/** Destructor */
|
|
void gnc_import_Settings_delete (GNCImportSettings *settings);
|
|
|
|
|
|
/** @name Getters/Setters for GNCImportSettings */
|
|
/*@{*/
|
|
|
|
/** Return the allowed amount range for fuzzy amount matching.
|
|
@return The allowed amount range for fuzzy amount matching,
|
|
in the users default commodity.
|
|
*/
|
|
double
|
|
gnc_import_Settings_get_fuzzy_amount (GNCImportSettings *settings);
|
|
|
|
/** Return the selected action is enable state.
|
|
*/
|
|
gboolean gnc_import_Settings_get_action_skip_enabled (GNCImportSettings *settings);
|
|
|
|
/** Return the selected action is enable state.
|
|
*/
|
|
gboolean gnc_import_Settings_get_action_add_enabled (GNCImportSettings *settings);
|
|
|
|
/** Return the selected action is enable state.
|
|
*/
|
|
gboolean gnc_import_Settings_get_action_edit_enabled (GNCImportSettings *settings);
|
|
|
|
/** Return the selected action is enable state.
|
|
*/
|
|
gboolean gnc_import_Settings_get_action_clear_enabled (GNCImportSettings *settings);
|
|
|
|
/** Return the selected threshold.
|
|
*/
|
|
gint gnc_import_Settings_get_clear_threshold (GNCImportSettings *settings);
|
|
|
|
/** Return the selected threshold.
|
|
*/
|
|
gint gnc_import_Settings_get_add_threshold (GNCImportSettings *settings);
|
|
|
|
/** Return the selected threshold.
|
|
*/
|
|
gint gnc_import_Settings_get_display_threshold (GNCImportSettings *settings);
|
|
|
|
/** @param match_date_hardlimit The number of days that a matching
|
|
* split may differ from the given transaction before it is discarded
|
|
* immediately. In other words, any split that is more distant from
|
|
* the given transaction than this match_date_hardlimit days will be
|
|
* ignored altogether. For use cases without paper checks (e.g. HBCI),
|
|
* values like 14 (days) might be appropriate, whereas for use cases
|
|
* with paper checks (e.g. OFX, QIF), values like 42 (days) seem more
|
|
* appropriate.
|
|
*/
|
|
void gnc_import_Settings_set_match_date_hardlimit (GNCImportSettings *settings, gint match_date_hardlimit);
|
|
/** Returns the hard-limiting number of days that a matching split may differ. */
|
|
gint gnc_import_Settings_get_match_date_hardlimit (const GNCImportSettings *settings);
|
|
|
|
/**@}*/
|
|
/**@}*/
|
|
|
|
#endif
|