GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dialog-ab-trans.h
Go to the documentation of this file.
1 /*
2  * dialog-ab-trans.h --
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of
7  * the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, contact:
16  *
17  * Free Software Foundation Voice: +1-617-542-5942
18  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
19  * Boston, MA 02110-1301, USA [email protected]
20  */
21 
35 #ifndef DIALOG_AB_TRANS_H
36 #define DIALOG_AB_TRANS_H
37 
38 #include <gtk/gtk.h>
39 #include <aqbanking/banking.h>
40 
41 #include "Account.h"
42 
43 G_BEGIN_DECLS
44 
45 #define GNC_RESPONSE_NOW GTK_RESPONSE_YES
46 #define GNC_RESPONSE_LATER GTK_RESPONSE_NO
47 
48 typedef struct _GncABTransDialog GncABTransDialog;
49 
50 typedef enum _GncABTransType GncABTransType;
51 enum _GncABTransType
52 {
53  SINGLE_TRANSFER = 0,
54  SINGLE_DEBITNOTE,
55  SINGLE_INTERNAL_TRANSFER
56  , SEPA_TRANSFER
57  , SEPA_DEBITNOTE
58 };
63 gboolean gnc_ab_trans_isSEPA(GncABTransType t);
64 
77 GncABTransDialog *gnc_ab_trans_dialog_new(GtkWidget *parent, AB_ACCOUNT *ab_acc,
78  gint commodity_scu,
79  GncABTransType trans_type,
80  GList *templates);
81 
92 
99 
112  gboolean *changed);
113 
121 
128 const AB_TRANSACTION *gnc_ab_trans_dialog_get_ab_trans(
129  const GncABTransDialog *td);
130 
138 
145 AB_JOB *gnc_ab_get_trans_job(AB_ACCOUNT *ab_acc, const AB_TRANSACTION *ab_trans,
146  GncABTransType trans_type);
147 
148 G_END_DECLS
149 
153 #endif /* DIALOG_AB_TRANS_H */
GncABTransDialog * gnc_ab_trans_dialog_new(GtkWidget *parent, AB_ACCOUNT *ab_acc, gint commodity_scu, GncABTransType trans_type, GList *templates)
gboolean gnc_ab_trans_isSEPA(GncABTransType t)
AB_JOB * gnc_ab_trans_dialog_get_job(const GncABTransDialog *td)
Account handling public routines.
GList * gnc_ab_trans_dialog_get_templ(const GncABTransDialog *td, gboolean *changed)
void gnc_ab_trans_dialog_free(GncABTransDialog *td)
AB_JOB * gnc_ab_get_trans_job(AB_ACCOUNT *ab_acc, const AB_TRANSACTION *ab_trans, GncABTransType trans_type)
const AB_TRANSACTION * gnc_ab_trans_dialog_get_ab_trans(const GncABTransDialog *td)
GtkWidget * gnc_ab_trans_dialog_get_parent(const GncABTransDialog *td)
gint gnc_ab_trans_dialog_run_until_ok(GncABTransDialog *td)