aqbanking  5.7.8
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 {
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 
76 #include <aqbanking/banking.h>
77 #include <aqbanking/provider.h>
78 #include <aqbanking/job.h>
79 #include <aqbanking/user.h>
80 
81 
82 #ifdef __cplusplus
83 extern "C" {
84 #endif
85 
87 void AB_Account_free(AB_ACCOUNT *acc);
88 
91 
96 
98 uint32_t AB_Account_GetUniqueId(const AB_ACCOUNT *acc);
99 
101 void AB_Account_SetUniqueId(AB_ACCOUNT *acc, uint32_t id);
102 
104 const char *AB_Account_GetBackendName(const AB_ACCOUNT *acc);
105 
106 
109 
111 const char *AB_Account_GetAccountNumber(const AB_ACCOUNT *acc);
113 void AB_Account_SetAccountNumber(AB_ACCOUNT *acc, const char *s);
114 
115 
117 const char *AB_Account_GetSubAccountId(const AB_ACCOUNT *acc);
119 void AB_Account_SetSubAccountId(AB_ACCOUNT *acc, const char *s);
120 
122 const char *AB_Account_GetBankCode(const AB_ACCOUNT *acc);
124 void AB_Account_SetBankCode(AB_ACCOUNT *acc, const char *s);
125 
131 const char *AB_Account_GetAccountName(const AB_ACCOUNT *acc);
133 void AB_Account_SetAccountName(AB_ACCOUNT *acc, const char *s);
134 
137 const char *AB_Account_GetBankName(const AB_ACCOUNT *acc);
139 void AB_Account_SetBankName(AB_ACCOUNT *acc, const char *s);
140 
142 const char *AB_Account_GetIBAN(const AB_ACCOUNT *a);
144 void AB_Account_SetIBAN(AB_ACCOUNT *a, const char *s);
145 
146 
148 const char *AB_Account_GetBIC(const AB_ACCOUNT *a);
150 void AB_Account_SetBIC(AB_ACCOUNT *a, const char *s);
151 
152 
154 const char *AB_Account_GetOwnerName(const AB_ACCOUNT *acc);
156 void AB_Account_SetOwnerName(AB_ACCOUNT *acc, const char *s);
157 
159 const char *AB_Account_GetCurrency(const AB_ACCOUNT *acc);
160 
162 void AB_Account_SetCurrency(AB_ACCOUNT *acc, const char *s);
163 
168 const char *AB_Account_GetCountry(const AB_ACCOUNT *acc);
169 
171 void AB_Account_SetCountry(AB_ACCOUNT *acc, const char *s);
172 
180 
183 
185 int AB_Account_HasUser(const AB_ACCOUNT *a, uint32_t uid);
186 
188 void AB_Account_SetUsers(AB_ACCOUNT *acc, const AB_USER_LIST2 *ul);
189 
191 void AB_Account_SetUser(AB_ACCOUNT *acc, const AB_USER *u);
192 
193 
196 
199 
201 int AB_Account_HasSelectedUser(const AB_ACCOUNT *a, uint32_t uid);
202 
205 
208 
209 
210 
211 
212 #ifdef __cplusplus
213 }
214 #endif
215 
216  /* defgroup */
218 
219 
220 #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)
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)
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)