GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
import-account-matcher.h
Go to the documentation of this file.
1 /********************************************************************\
2  * import-account-matcher.h - flexible account picker/matcher *
3  * *
4  * Copyright (C) 2002 Benoit GrĂ©goire <[email protected]> *
5  * Copyright (C) 2012 Robert Fewell *
6  * *
7  * This program is free software; you can redistribute it and/or *
8  * modify it under the terms of the GNU General Public License as *
9  * published by the Free Software Foundation; either version 2 of *
10  * the License, or (at your option) any later version. *
11  * *
12  * This program is distributed in the hope that it will be useful, *
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15  * GNU General Public License for more details. *
16  * *
17  * You should have received a copy of the GNU General Public License*
18  * along with this program; if not, contact: *
19  * *
20  * Free Software Foundation Voice: +1-617-542-5942 *
21  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
22  * Boston, MA 02110-1301, USA [email protected] *
23 \********************************************************************/
30 #ifndef IMPORT_ACCOUNT_MATCHER_H
31 #define IMPORT_ACCOUNT_MATCHER_H
32 
33 #include "Account.h"
34 #include <gtk/gtk.h>
35 
36 #include "gnc-tree-view-account.h"
37 
38 typedef struct
39 {
40  GtkWidget *dialog; /* Dialog Widget */
41  GtkWidget *assistant; /* assistant Widget */
42  GncTreeViewAccount *account_tree; /* Account tree */
43  GtkWidget *account_tree_sw; /* Scroll Window for Account tree */
44  gboolean auto_create; /* Auto create retAccount, can be used to step over this stage */
45  const gchar *account_human_description; /* description for on line id, incoming */
46  const gchar *account_online_id_value; /* On line id value, incoming */
47  GtkWidget *account_online_id_label; /* the label Widget for the on line id, incoming */
48  const gnc_commodity *new_account_default_commodity; /* new account default commodity, incoming */
49  GNCAccountType new_account_default_type; /* new account default type, incoming */
50  Account *default_account; /* default account for selection, incoming */
51  Account *retAccount; /* Account value returned to caller */
53 
115 Account * gnc_import_select_account(GtkWidget *parent,
116  const gchar * account_online_id_value,
117  gboolean auto_create,
118  const gchar * account_human_description,
119  const gnc_commodity * new_account_default_commodity,
120  GNCAccountType new_account_default_type,
121  Account * default_selection,
122  gboolean * ok_pressed
123  );
124 
125 
136 
137 
148 
149 #endif
150 
Account * gnc_import_select_account(GtkWidget *parent, const gchar *account_online_id_value, gboolean auto_create, const gchar *account_human_description, const gnc_commodity *new_account_default_commodity, GNCAccountType new_account_default_type, Account *default_selection, gboolean *ok_pressed)
Account handling public routines.
GtkTreeView implementation for gnucash account tree.
GNCAccountType
Definition: Account.h:96
AccountPickerDialog * gnc_import_account_assist_setup(GtkWidget *parent)
Account * gnc_import_account_assist_update(AccountPickerDialog *picker)