aqbanking  5.6.4beta
aqbanking/account.h
Go to the documentation of this file.
1 /***************************************************************************
2  begin : Mon Mar 01 2004
3  copyright : (C) 2004 by Martin Preuss
4  email : martin@libchipcard.de
5 
6  ***************************************************************************
7  * This file is part of the project "AqBanking". *
8  * Please see toplevel file COPYING of that project for license details. *
9  ***************************************************************************/
10 
11 
12 #ifndef AQBANKING_ACCOUNT_H
13 #define AQBANKING_ACCOUNT_H
14 
15 #include <gwenhywfar/misc.h>
16 #include <gwenhywfar/list2.h>
17 #include <gwenhywfar/inherit.h>
18 #include <gwenhywfar/types.h>
19 #include <gwenhywfar/db.h>
20 #include <gwenhywfar/stringlist.h>
21 #include <aqbanking/error.h> /* for AQBANKING_API */
22 
23 
37 
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
43 
44 typedef struct AB_ACCOUNT AB_ACCOUNT;
47 /* Do not terminate these lines with semicolon because they are
48  macros, not functions, and ISO C89 does not allow a semicolon
49  there. */
50 
53 
55 AB_ACCOUNT *AB_Account_List2_GetAccountByUniqueId(const AB_ACCOUNT_LIST2 *al, uint32_t aid);
56 
57 
58 typedef enum {
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 
74 #include <aqbanking/banking.h>
75 #include <aqbanking/provider.h>
76 #include <aqbanking/job.h>
77 #include <aqbanking/user.h>
78 
79 
80 #ifdef __cplusplus
81 extern "C" {
82 #endif
83 
85 void AB_Account_free(AB_ACCOUNT *acc);
86 
89 
94 
96 uint32_t AB_Account_GetUniqueId(const AB_ACCOUNT *acc);
97 
99 void AB_Account_SetUniqueId(AB_ACCOUNT *acc, uint32_t id);
100 
102 const char *AB_Account_GetBackendName(const AB_ACCOUNT *acc);
103 
104 
107 
109 const char *AB_Account_GetAccountNumber(const AB_ACCOUNT *acc);
111 void AB_Account_SetAccountNumber(AB_ACCOUNT *acc, const char *s);
112 
113 
115 const char *AB_Account_GetSubAccountId(const AB_ACCOUNT *acc);
117 void AB_Account_SetSubAccountId(AB_ACCOUNT *acc, const char *s);
118 
120 const char *AB_Account_GetBankCode(const AB_ACCOUNT *acc);
122 void AB_Account_SetBankCode(AB_ACCOUNT *acc, const char *s);
123 
129 const char *AB_Account_GetAccountName(const AB_ACCOUNT *acc);
131 void AB_Account_SetAccountName(AB_ACCOUNT *acc, const char *s);
132 
135 const char *AB_Account_GetBankName(const AB_ACCOUNT *acc);
137 void AB_Account_SetBankName(AB_ACCOUNT *acc, const char *s);
138 
140 const char *AB_Account_GetIBAN(const AB_ACCOUNT *a);
142 void AB_Account_SetIBAN(AB_ACCOUNT *a, const char *s);
143 
144 
146 const char *AB_Account_GetBIC(const AB_ACCOUNT *a);
148 void AB_Account_SetBIC(AB_ACCOUNT *a, const char *s);
149 
150 
152 const char *AB_Account_GetOwnerName(const AB_ACCOUNT *acc);
154 void AB_Account_SetOwnerName(AB_ACCOUNT *acc, const char *s);
155 
157 const char *AB_Account_GetCurrency(const AB_ACCOUNT *acc);
158 
160 void AB_Account_SetCurrency(AB_ACCOUNT *acc, const char *s);
161 
166 const char *AB_Account_GetCountry(const AB_ACCOUNT *acc);
167 
169 void AB_Account_SetCountry(AB_ACCOUNT *acc, const char *s);
170 
178 
181 
183 void AB_Account_SetUsers(AB_ACCOUNT *acc, const AB_USER_LIST2 *ul);
184 
186 void AB_Account_SetUser(AB_ACCOUNT *acc, const AB_USER *u);
187 
188 
191 
194 
197 
200 
201 
202 
203 
204 #ifdef __cplusplus
205 }
206 #endif
207 
208  /* defgroup */
210 
211 
212 #endif /* AQBANKING_ACCOUNT_H */
struct AB_USER AB_USER
const char * AB_Account_GetIBAN(const AB_ACCOUNT *a)
void AB_Account_SetBankCode(AB_ACCOUNT *acc, const char *s)
const char * AB_Account_GetBIC(const AB_ACCOUNT *a)
struct AB_BANKING AB_BANKING
Definition: banking.h:26
The main interface of the aqbanking library.
const char * AB_Account_GetCountry(const AB_ACCOUNT *acc)
const char * AB_Account_GetCurrency(const AB_ACCOUNT *acc)
This file is used by AqBanking and provider backends.
void AB_Account_List2_FreeAll(AB_ACCOUNT_LIST2 *al)
void AB_Account_SetAccountName(AB_ACCOUNT *acc, const char *s)
void AB_Account_SetBankName(AB_ACCOUNT *acc, const char *s)
const char * AB_Account_GetAccountName(const AB_ACCOUNT *acc)
AB_BANKING * AB_Account_GetBanking(const AB_ACCOUNT *acc)
#define AQBANKING_API
Definition: error.h:55
struct AB_ACCOUNT_LIST2 AB_ACCOUNT_LIST2
Definition: listdoc.h:493
void AB_Account_SetSubAccountId(AB_ACCOUNT *acc, const char *s)
AB_USER * AB_Account_GetFirstUser(const AB_ACCOUNT *acc)
void AB_Account_SetAccountNumber(AB_ACCOUNT *acc, const char *s)
const char * AB_Account_GetBackendName(const AB_ACCOUNT *acc)
uint32_t AB_Account_GetUniqueId(const AB_ACCOUNT *acc)
AB_USER_LIST2 * AB_Account_GetSelectedUsers(const AB_ACCOUNT *acc)
void AB_Account_SetUsers(AB_ACCOUNT *acc, const AB_USER_LIST2 *ul)
void AB_Account_free(AB_ACCOUNT *acc)
struct AB_USER_LIST2 AB_USER_LIST2
Definition: listdoc.h:5788
AB_ACCOUNT_TYPE
AB_PROVIDER * AB_Account_GetProvider(const AB_ACCOUNT *acc)
GWEN_INHERIT_FUNCTION_LIB_DEFS(AB_BANKINFO_PLUGIN,) GWEN_LIST2_FUNCTION_LIB_DEFS(AB_BANKINFO_PLUGIN
AB_ACCOUNT * AB_Account_List2_GetAccountByUniqueId(const AB_ACCOUNT_LIST2 *al, uint32_t aid)
void AB_Account_SetSelectedUser(AB_ACCOUNT *a, const AB_USER *u)
GWEN_LIST2_FUNCTION_LIB_DEFS(AB_ACCOUNT_STATUS, AB_AccountStatus,) AB_ACCOUNT_STATUS *AB_AccountStatus_new()
AB_USER_LIST2 * AB_Account_GetUsers(const AB_ACCOUNT *acc)
void AB_Account_SetCurrency(AB_ACCOUNT *acc, const char *s)
void AB_Account_SetUser(AB_ACCOUNT *acc, const AB_USER *u)
void AB_Account_SetOwnerName(AB_ACCOUNT *acc, const char *s)
const char * AB_Account_GetAccountNumber(const AB_ACCOUNT *acc)
const char * AB_Account_GetSubAccountId(const AB_ACCOUNT *acc)
AB_USER * AB_Account_GetFirstSelectedUser(const AB_ACCOUNT *acc)
struct AB_PROVIDER AB_PROVIDER
void AB_Account_SetUniqueId(AB_ACCOUNT *acc, uint32_t id)
void AB_Account_SetCountry(AB_ACCOUNT *acc, const char *s)
void AB_Account_SetSelectedUsers(AB_ACCOUNT *acc, const AB_USER_LIST2 *ul)
void AB_Account_SetIBAN(AB_ACCOUNT *a, const char *s)
const char * AB_Account_GetBankName(const AB_ACCOUNT *acc)
void AB_Account_SetBIC(AB_ACCOUNT *a, const char *s)
const char * AB_Account_GetBankCode(const AB_ACCOUNT *acc)
AB_ACCOUNT_TYPE AB_Account_GetAccountType(const AB_ACCOUNT *acc)
const char * AB_Account_GetOwnerName(const AB_ACCOUNT *acc)
struct AB_ACCOUNT AB_ACCOUNT
void AB_Account_SetAccountType(AB_ACCOUNT *acc, AB_ACCOUNT_TYPE t)