GnuCash 2.4.99
import-account-matcher.h
Go to the documentation of this file.
00001 /********************************************************************\
00002  * import-account-matcher.h - flexible account picker/matcher       *
00003  *                                                                  *
00004  * Copyright (C) 2002 Benoit Grégoire <bock@step.polymtl.ca>        *
00005  * Copyright (C) 2012 Robert Fewell                                 *
00006  *                                                                  *
00007  * This program is free software; you can redistribute it and/or    *
00008  * modify it under the terms of the GNU General Public License as   *
00009  * published by the Free Software Foundation; either version 2 of   *
00010  * the License, or (at your option) any later version.              *
00011  *                                                                  *
00012  * This program is distributed in the hope that it will be useful,  *
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00015  * GNU General Public License for more details.                     *
00016  *                                                                  *
00017  * You should have received a copy of the GNU General Public License*
00018  * along with this program; if not, contact:                        *
00019  *                                                                  *
00020  * Free Software Foundation           Voice:  +1-617-542-5942       *
00021  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00022  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00023 \********************************************************************/
00030 #ifndef IMPORT_ACCOUNT_MATCHER_H
00031 #define IMPORT_ACCOUNT_MATCHER_H
00032 
00033 #include "Account.h"
00034 #include <gtk/gtk.h>
00035 
00036 #include "gnc-tree-view-account.h"
00037 
00038 typedef struct
00039 {
00040     GtkWidget           *dialog;                         /* Dialog Widget */
00041     GtkWidget           *assistant;                      /* assistant Widget */
00042     GncTreeViewAccount  *account_tree;                   /* Account tree */
00043     GtkWidget           *account_tree_sw;                /* Scroll Window for Account tree */
00044     gboolean             auto_create;                    /* Auto create retAccount, can be used to step over this stage */
00045     const gchar         *account_human_description;      /* description for on line id, incoming */
00046     const gchar         *account_online_id_value;        /* On line id value, incoming */
00047     GtkWidget           *account_online_id_label;        /* the label Widget for the on line id, incoming */
00048     const gnc_commodity *new_account_default_commodity;  /* new account default commodity, incoming */
00049     GNCAccountType       new_account_default_type;       /* new account default type, incoming */
00050     Account             *default_account;                /* default account for selection, incoming */
00051     Account             *retAccount;                     /* Account value returned to caller */
00052 } AccountPickerDialog;
00053 
00115 Account * gnc_import_select_account(GtkWidget *parent,
00116                                     const gchar * account_online_id_value,
00117                                     gboolean auto_create,
00118                                     const gchar * account_human_description,
00119                                     const gnc_commodity * new_account_default_commodity,
00120                                     GNCAccountType new_account_default_type,
00121                                     Account * default_selection,
00122                                     gboolean * ok_pressed
00123                                    );
00124 
00125 
00135 AccountPickerDialog * gnc_import_account_assist_setup (GtkWidget *parent);
00136 
00137 
00147 Account * gnc_import_account_assist_update (AccountPickerDialog *picker);
00148 
00149 #endif
00150 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines