GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
import-backend.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 [email protected] *
18 \********************************************************************/
28 #ifndef TRANSACTION_MATCHER_H
29 #define TRANSACTION_MATCHER_H
30 
31 #include "Transaction.h"
32 #include "import-settings.h"
33 
35 typedef struct _matchinfo GNCImportMatchInfo;
37 
38 typedef enum _action
39 {
40  GNCImport_SKIP,
41  GNCImport_ADD,
42  GNCImport_CLEAR,
43  GNCImport_UPDATE,
44  GNCImport_LAST_ACTION,
45  GNCImport_INVALID_ACTION
46 } GNCImportAction;
47 
48 /************************************************************************
49  ************************************************************************/
52 
61 
87  gint process_threshold,
88  double fuzzy_amount_difference,
89  gint match_date_hardlimit);
90 
100 void
102  GNCImportSettings *settings);
103 
121 gboolean
123  GNCImportTransInfo *trans_info);
124 
138 GdkPixbuf* gen_probability_pixbuf (gint score,
139  GNCImportSettings *settings,
140  GtkWidget * widget);
141 
145 /************************************************************************
146  * Getter/Setter Functions for the Data Types.
147  ************************************************************************/
148 
151 
165 
168 
171 
174 
177 
180 
184 
189 void
191  GNCImportMatchInfo *match,
192  gboolean selected_manually);
193 
195 gboolean
197 
199 GNCImportAction
201 
203 void
205  GNCImportAction action);
206 
208 Account *
210 
215 void
217  Account *acc,
218  gboolean selected_manually);
219 
221 gboolean
223  GncImportMatchMap *matchmap);
224 
226 gboolean
228 
229 
231 guint32
233 
235 void
237  guint32 ref_id);
238 
245 Split *
247 
248 
251 gint
255 #endif
256 
GNCImportTransInfo * gnc_import_TransInfo_new(Transaction *trans, GncImportMatchMap *matchmap)
void gnc_import_TransInfo_delete(GNCImportTransInfo *info)
void gnc_import_TransInfo_set_ref_id(GNCImportTransInfo *info, guint32 ref_id)
void gnc_import_TransInfo_set_selected_match(GNCImportTransInfo *info, GNCImportMatchInfo *match, gboolean selected_manually)
Split * gnc_import_TransInfo_get_fsplit(const GNCImportTransInfo *info)
GdkPixbuf * gen_probability_pixbuf(gint score_original, GNCImportSettings *settings, GtkWidget *widget)
Transaction * gnc_import_TransInfo_get_trans(const GNCImportTransInfo *info)
void gnc_import_TransInfo_set_destacc(GNCImportTransInfo *info, Account *acc, gboolean selected_manually)
Import preference handling. User preference interface for transaction matching (for both the gui and ...
guint32 gnc_import_TransInfo_get_ref_id(const GNCImportTransInfo *info)
void gnc_import_TransInfo_init_matches(GNCImportTransInfo *trans_info, GNCImportSettings *settings)
GNCImportAction gnc_import_TransInfo_get_action(const GNCImportTransInfo *info)
Split * gnc_import_MatchInfo_get_split(const GNCImportMatchInfo *info)
gint gnc_import_MatchInfo_get_probability(const GNCImportMatchInfo *info)
gboolean gnc_import_process_trans_item(GncImportMatchMap *matchmap, GNCImportTransInfo *trans_info)
void gnc_import_TransInfo_set_action(GNCImportTransInfo *info, GNCImportAction action)
gboolean gnc_import_TransInfo_refresh_destacc(GNCImportTransInfo *transaction_info, GncImportMatchMap *matchmap)
gboolean gnc_import_exists_online_id(Transaction *trans)
void gnc_import_find_split_matches(GNCImportTransInfo *trans_info, gint process_threshold, double fuzzy_amount_difference, gint match_date_hardlimit)
gboolean gnc_import_TransInfo_get_match_selected_manually(const GNCImportTransInfo *info)
Definition: SplitP.h:71
Account * gnc_import_TransInfo_get_destacc(const GNCImportTransInfo *info)
GList * gnc_import_TransInfo_get_match_list(const GNCImportTransInfo *info)
GNCImportMatchInfo * gnc_import_TransInfo_get_selected_match(const GNCImportTransInfo *info)
API for Transactions and Splits (journal entries)
gboolean gnc_import_TransInfo_is_balanced(const GNCImportTransInfo *info)
gboolean gnc_import_TransInfo_get_destacc_selected_manually(const GNCImportTransInfo *info)