aqbanking  5.8.2
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 
56 
57 
58 typedef enum {
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 
77 #include <aqbanking/banking.h>
78 #include <aqbanking/provider.h>
79 #include <aqbanking/job.h>
80 #include <aqbanking/user.h>
81 
82 
83 #ifdef __cplusplus
84 extern "C" {
85 #endif
86 
87 
93 
94 
101 
102 
104 void AB_Account_free(AB_ACCOUNT *acc);
105 
108 
113 
115 uint32_t AB_Account_GetUniqueId(const AB_ACCOUNT *acc);
116 
118 void AB_Account_SetUniqueId(AB_ACCOUNT *acc, uint32_t id);
119 
121 const char *AB_Account_GetBackendName(const AB_ACCOUNT *acc);
122 
123 
126 
128 const char *AB_Account_GetAccountNumber(const AB_ACCOUNT *acc);
130 void AB_Account_SetAccountNumber(AB_ACCOUNT *acc, const char *s);
131 
132 
134 const char *AB_Account_GetSubAccountId(const AB_ACCOUNT *acc);
136 void AB_Account_SetSubAccountId(AB_ACCOUNT *acc, const char *s);
137 
139 const char *AB_Account_GetBankCode(const AB_ACCOUNT *acc);
141 void AB_Account_SetBankCode(AB_ACCOUNT *acc, const char *s);
142 
148 const char *AB_Account_GetAccountName(const AB_ACCOUNT *acc);
150 void AB_Account_SetAccountName(AB_ACCOUNT *acc, const char *s);
151 
154 const char *AB_Account_GetBankName(const AB_ACCOUNT *acc);
156 void AB_Account_SetBankName(AB_ACCOUNT *acc, const char *s);
157 
159 const char *AB_Account_GetIBAN(const AB_ACCOUNT *a);
161 void AB_Account_SetIBAN(AB_ACCOUNT *a, const char *s);
162 
163 
165 const char *AB_Account_GetBIC(const AB_ACCOUNT *a);
167 void AB_Account_SetBIC(AB_ACCOUNT *a, const char *s);
168 
169 
171 const char *AB_Account_GetOwnerName(const AB_ACCOUNT *acc);
173 void AB_Account_SetOwnerName(AB_ACCOUNT *acc, const char *s);
174 
176 const char *AB_Account_GetCurrency(const AB_ACCOUNT *acc);
177 
179 void AB_Account_SetCurrency(AB_ACCOUNT *acc, const char *s);
180 
185 const char *AB_Account_GetCountry(const AB_ACCOUNT *acc);
186 
188 void AB_Account_SetCountry(AB_ACCOUNT *acc, const char *s);
189 
197 
200 
202 int AB_Account_HasUser(const AB_ACCOUNT *a, uint32_t uid);
203 
205 void AB_Account_SetUsers(AB_ACCOUNT *acc, const AB_USER_LIST2 *ul);
206 
208 void AB_Account_SetUser(AB_ACCOUNT *acc, const AB_USER *u);
209 
210 
213 
216 
218 int AB_Account_HasSelectedUser(const AB_ACCOUNT *a, uint32_t uid);
219 
222 
225 
226 
227 
228 
229 #ifdef __cplusplus
230 }
231 #endif
232 
233  /* defgroup */
235 
236 
237 #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)
AB_ACCOUNT_TYPE AB_AccountType_fromChar(const char *s)
int AB_Account_HasUser(const AB_ACCOUNT *a, uint32_t uid)
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)
int AB_Account_HasSelectedUser(const AB_ACCOUNT *a, uint32_t uid)
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)
const char * AB_AccountType_toChar(AB_ACCOUNT_TYPE ty)
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)