GnuCash  4.10-100-g8b5b6256d+
import-main-matcher.h
Go to the documentation of this file.
1 /********************************************************************\
2  * import-main-matcher.h - Transaction matcher main window *
3  * *
4  * Copyright (C) 2002 Benoit GrĂ©goire <bock@step.polymtl.ca> *
5  * Copyright (C) 2002 Christian Stimming *
6  * Copyright (C) 2012 Robert Fewell *
7  * *
8  * This program is free software; you can redistribute it and/or *
9  * modify it under the terms of the GNU General Public License as *
10  * published by the Free Software Foundation; either version 2 of *
11  * the License, or (at your option) any later version. *
12  * *
13  * This program is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16  * GNU General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU General Public License*
19  * along with this program; if not, contact: *
20  * *
21  * Free Software Foundation Voice: +1-617-542-5942 *
22  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
23  * Boston, MA 02110-1301, USA gnu@gnu.org *
24 \********************************************************************/
33 #ifndef GNC_IMPORT_MAIN_MATCHER_H
34 #define GNC_IMPORT_MAIN_MATCHER_H
35 
36 #include "Transaction.h"
37 #include "import-backend.h"
38 
39 typedef struct _main_matcher_info GNCImportMainMatcher;
40 
41 typedef void (*GNCTransactionProcessedCB) (GNCImportTransInfo *trans_info,
42  gboolean imported,
43  gpointer user_data);
44 
69 GNCImportMainMatcher *gnc_gen_trans_list_new (GtkWidget *parent,
70  const gchar* heading,
71  gboolean all_from_same_account,
72  gint match_date_hardlimit,
73  gboolean show_all);
74 
75 
76 
105 GNCImportMainMatcher * gnc_gen_trans_assist_new (GtkWidget *parent,
106  GtkWidget *assistant_page,
107  const gchar* heading,
108  gboolean all_from_same_account,
109  gint match_date_hardlimit);
110 
111 
117 void gnc_gen_trans_assist_start (GNCImportMainMatcher *info);
118 
119 
127 void on_matcher_help_clicked (GtkButton *button, gpointer user_data);
128 
129 
136 void gnc_gen_trans_list_add_tp_cb (GNCImportMainMatcher *info,
137  GNCTransactionProcessedCB trans_processed_cb,
138  gpointer user_data);
139 
140 
142 void gnc_gen_trans_list_delete (GNCImportMainMatcher *info);
143 
155 void gnc_gen_trans_list_add_trans (GNCImportMainMatcher *gui, Transaction *trans);
156 
157 
172 void gnc_gen_trans_list_add_trans_with_ref_id (GNCImportMainMatcher *gui,
173  Transaction *trans,
174  guint32 ref_id);
175 
176 
183 gboolean gnc_gen_trans_list_run (GNCImportMainMatcher *info);
184 
185 
190 GtkWidget *gnc_gen_trans_list_widget (GNCImportMainMatcher *info);
191 
196 GtkWidget *
197 gnc_gen_trans_list_append_text_widget (GNCImportMainMatcher *info);
198 
203 gboolean gnc_gen_trans_list_empty (GNCImportMainMatcher *info);
204 
208 void gnc_gen_trans_list_show_all (GNCImportMainMatcher *info);
209 
215 void gnc_gen_trans_list_show_reconcile_after_close_button (GNCImportMainMatcher *info,
216  gboolean reconcile_after_close,
217  gboolean active);
222 GtkWidget* gnc_gen_trans_list_get_reconcile_after_close_button (GNCImportMainMatcher *info);
223 
224 #endif
225 
void gnc_gen_trans_list_show_reconcile_after_close_button(GNCImportMainMatcher *info, gboolean reconcile_after_close, gboolean active)
Show and set the reconcile after close check button.
GNCImportMainMatcher * gnc_gen_trans_list_new(GtkWidget *parent, const gchar *heading, gboolean all_from_same_account, gint match_date_hardlimit, gboolean show_all)
Create a new generic transaction dialog window and return it.
void gnc_gen_trans_list_show_all(GNCImportMainMatcher *info)
Shows widgets.
Generic importer backend interface.
void on_matcher_help_clicked(GtkButton *button, gpointer user_data)
This allows for the transaction help dialog to be started from the assistant button callback...
void gnc_gen_trans_list_add_tp_cb(GNCImportMainMatcher *info, GNCTransactionProcessedCB trans_processed_cb, gpointer user_data)
Add transaction processed callback to the transaction importer.
GtkWidget * gnc_gen_trans_list_append_text_widget(GNCImportMainMatcher *info)
Returns the append_text widget of this dialog.
void gnc_gen_trans_list_add_trans(GNCImportMainMatcher *gui, Transaction *trans)
Add a newly imported Transaction to the Transaction Importer.
gboolean gnc_gen_trans_list_run(GNCImportMainMatcher *info)
Run this dialog and return only after the user pressed Ok, Cancel, or closed the window.
GtkWidget * gnc_gen_trans_list_get_reconcile_after_close_button(GNCImportMainMatcher *info)
Returns the reconcile after close check button.
GtkWidget * gnc_gen_trans_list_widget(GNCImportMainMatcher *info)
Returns the widget of this dialog.
void gnc_gen_trans_assist_start(GNCImportMainMatcher *info)
This starts the import process for transaction from an assistant.
gboolean gnc_gen_trans_list_empty(GNCImportMainMatcher *info)
Checks whether there are no transactions to match.
void gnc_gen_trans_list_add_trans_with_ref_id(GNCImportMainMatcher *gui, Transaction *trans, guint32 ref_id)
Add a newly imported Transaction to the Transaction Importer and provide an external reference id for...
GNCImportMainMatcher * gnc_gen_trans_assist_new(GtkWidget *parent, GtkWidget *assistant_page, const gchar *heading, gboolean all_from_same_account, gint match_date_hardlimit)
Add the Transaction matcher to an existing page of an assistant.
void gnc_gen_trans_list_delete(GNCImportMainMatcher *info)
Deletes the given object.
API for Transactions and Splits (journal entries)