aqbanking  5.3.6beta
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. */
51 
52 typedef enum {
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 
68 #include <aqbanking/banking.h>
69 #include <aqbanking/provider.h>
70 #include <aqbanking/job.h>
71 #include <aqbanking/user.h>
72 
73 
74 #ifdef __cplusplus
75 extern "C" {
76 #endif
77 
79 void AB_Account_free(AB_ACCOUNT *acc);
80 
83 
88 
90 uint32_t AB_Account_GetUniqueId(const AB_ACCOUNT *acc);
91 
93 void AB_Account_SetUniqueId(AB_ACCOUNT *acc, uint32_t id);
94 
96 const char *AB_Account_GetBackendName(const AB_ACCOUNT *acc);
97 
98 
101 
103 const char *AB_Account_GetAccountNumber(const AB_ACCOUNT *acc);
105 void AB_Account_SetAccountNumber(AB_ACCOUNT *acc, const char *s);
106 
107 
109 const char *AB_Account_GetSubAccountId(const AB_ACCOUNT *acc);
111 void AB_Account_SetSubAccountId(AB_ACCOUNT *acc, const char *s);
112 
114 const char *AB_Account_GetBankCode(const AB_ACCOUNT *acc);
116 void AB_Account_SetBankCode(AB_ACCOUNT *acc, const char *s);
117 
123 const char *AB_Account_GetAccountName(const AB_ACCOUNT *acc);
125 void AB_Account_SetAccountName(AB_ACCOUNT *acc, const char *s);
126 
129 const char *AB_Account_GetBankName(const AB_ACCOUNT *acc);
131 void AB_Account_SetBankName(AB_ACCOUNT *acc, const char *s);
132 
134 const char *AB_Account_GetIBAN(const AB_ACCOUNT *a);
136 void AB_Account_SetIBAN(AB_ACCOUNT *a, const char *s);
137 
138 
140 const char *AB_Account_GetBIC(const AB_ACCOUNT *a);
142 void AB_Account_SetBIC(AB_ACCOUNT *a, const char *s);
143 
144 
146 const char *AB_Account_GetOwnerName(const AB_ACCOUNT *acc);
148 void AB_Account_SetOwnerName(AB_ACCOUNT *acc, const char *s);
149 
151 const char *AB_Account_GetCurrency(const AB_ACCOUNT *acc);
152 
154 void AB_Account_SetCurrency(AB_ACCOUNT *acc, const char *s);
155 
160 const char *AB_Account_GetCountry(const AB_ACCOUNT *acc);
161 
163 void AB_Account_SetCountry(AB_ACCOUNT *acc, const char *s);
164 
172 
175 
177 void AB_Account_SetUsers(AB_ACCOUNT *acc, const AB_USER_LIST2 *ul);
178 
180 void AB_Account_SetUser(AB_ACCOUNT *acc, const AB_USER *u);
181 
182 
185 
188 
191 
194 
195 
196 #ifdef __cplusplus
197 }
198 #endif
199 
200  /* defgroup */
202 
203 
204 #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:7267
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:1522
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
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)