GnuCash 2.4.99
gnc-ab-trans-templ.h
Go to the documentation of this file.
00001 /*
00002  * gnc-ab-trans-templ.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 
00033 #ifndef GNC_AB_TRANS_TEMPL_H
00034 #define GNC_AB_TRANS_TEMPL_H
00035 
00036 #include <glib.h>
00037 
00038 #include "qof.h"
00039 
00040 G_BEGIN_DECLS
00041 
00043 typedef struct _GncABTransTempl GncABTransTempl;
00044 
00050 GncABTransTempl *gnc_ab_trans_templ_new(void);
00051 
00064 GncABTransTempl *gnc_ab_trans_templ_new_full(
00065     const gchar *name, const gchar *recp_name, const gchar *recp_account,
00066     const gchar *recp_bankcode, gnc_numeric amount, const gchar *purpose,
00067     const gchar *purpose_cont);
00068 
00075 GncABTransTempl *gnc_ab_trans_templ_new_from_kvp(const kvp_frame *k);
00076 
00084 GList *gnc_ab_trans_templ_list_new_from_kvp_list(GList *v);
00085 
00091 void gnc_ab_trans_templ_free(GncABTransTempl *t);
00092 
00098 void gnc_ab_trans_templ_list_free(GList *l);
00099 
00106 kvp_frame *gnc_ab_trans_templ_to_kvp(const GncABTransTempl *t);
00107 
00115 GList *gnc_ab_trans_templ_list_to_kvp_list(GList *k);
00116 
00121 const gchar *gnc_ab_trans_templ_get_name(const GncABTransTempl *t);
00122 
00127 const gchar *gnc_ab_trans_templ_get_recp_name(const GncABTransTempl *t);
00128 
00133 const gchar *gnc_ab_trans_templ_get_recp_account(const GncABTransTempl *t);
00134 
00139 const gchar *gnc_ab_trans_templ_get_recp_bankcode(const GncABTransTempl *t);
00140 
00145 gnc_numeric gnc_ab_trans_templ_get_amount(const GncABTransTempl *t);
00146 
00151 const gchar *gnc_ab_trans_templ_get_purpose(const GncABTransTempl *t);
00152 
00157 const gchar *gnc_ab_trans_templ_get_purpose_cont(const GncABTransTempl *t);
00158 
00165 void gnc_ab_trans_templ_set_name(GncABTransTempl *t, const gchar *name);
00166 
00173 void gnc_ab_trans_templ_set_recp_name(GncABTransTempl *t,
00174                                       const gchar *recp_name);
00175 
00182 void gnc_ab_trans_templ_set_recp_account(GncABTransTempl *t,
00183         const gchar *recp_account);
00184 
00191 void gnc_ab_trans_templ_set_recp_bankcode(GncABTransTempl *t,
00192         const gchar *recp_bankcode);
00193 
00200 void gnc_ab_trans_templ_set_amount(GncABTransTempl *t, gnc_numeric amount);
00201 
00208 void gnc_ab_trans_templ_set_purpose(GncABTransTempl *t, const gchar *purpose);
00209 
00216 void gnc_ab_trans_templ_set_purpose_cont(GncABTransTempl *t,
00217         const gchar *purpose_cont);
00218 
00219 G_END_DECLS
00220 
00221 #endif /* GNC_AB_TRANS_TEMPL_H */
00222 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines