|
GnuCash 2.4.99
|
00001 /* 00002 * dialog-ab-trans.h -- 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License as 00006 * published by the Free Software Foundation; either version 2 of 00007 * the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, contact: 00016 * 00017 * Free Software Foundation Voice: +1-617-542-5942 00018 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 00019 * Boston, MA 02110-1301, USA gnu@gnu.org 00020 */ 00021 00035 #ifndef DIALOG_AB_TRANS_H 00036 #define DIALOG_AB_TRANS_H 00037 00038 #include <gtk/gtk.h> 00039 #include <aqbanking/banking.h> 00040 00041 #include "Account.h" 00042 00043 G_BEGIN_DECLS 00044 00045 #define GNC_RESPONSE_NOW GTK_RESPONSE_YES 00046 #define GNC_RESPONSE_LATER GTK_RESPONSE_NO 00047 00048 typedef struct _GncABTransDialog GncABTransDialog; 00049 00050 typedef enum _GncABTransType GncABTransType; 00051 enum _GncABTransType 00052 { 00053 SINGLE_TRANSFER = 0, 00054 SINGLE_DEBITNOTE, 00055 SINGLE_INTERNAL_TRANSFER 00056 }; 00057 00070 GncABTransDialog *gnc_ab_trans_dialog_new(GtkWidget *parent, AB_ACCOUNT *ab_acc, 00071 gint commodity_scu, 00072 GncABTransType trans_type, 00073 GList *templates); 00074 00084 gint gnc_ab_trans_dialog_run_until_ok(GncABTransDialog *td); 00085 00091 void gnc_ab_trans_dialog_free(GncABTransDialog *td); 00092 00104 GList *gnc_ab_trans_dialog_get_templ(const GncABTransDialog *td, 00105 gboolean *changed); 00106 00113 GtkWidget *gnc_ab_trans_dialog_get_parent(const GncABTransDialog *td); 00114 00121 const AB_TRANSACTION *gnc_ab_trans_dialog_get_ab_trans( 00122 const GncABTransDialog *td); 00123 00130 AB_JOB *gnc_ab_trans_dialog_get_job(const GncABTransDialog *td); 00131 00138 AB_JOB *gnc_ab_get_trans_job(AB_ACCOUNT *ab_acc, const AB_TRANSACTION *ab_trans, 00139 GncABTransType trans_type); 00140 00141 G_END_DECLS 00142 00146 #endif /* DIALOG_AB_TRANS_H */
1.7.4