00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef AQBANKING_ACCOUNT_H
00016 #define AQBANKING_ACCOUNT_H
00017
00018 #include <gwenhywfar/misc.h>
00019 #include <gwenhywfar/list2.h>
00020 #include <gwenhywfar/inherit.h>
00021 #include <gwenhywfar/types.h>
00022 #include <gwenhywfar/db.h>
00023 #include <gwenhywfar/stringlist.h>
00024 #include <aqbanking/error.h>
00025
00026
00034
00035
00036 #ifdef __cplusplus
00037 extern "C" {
00038 #endif
00039
00040
00041 typedef struct AB_ACCOUNT AB_ACCOUNT;
00042 GWEN_INHERIT_FUNCTION_LIB_DEFS(AB_ACCOUNT, AQBANKING_API)
00043 GWEN_LIST2_FUNCTION_LIB_DEFS(AB_ACCOUNT, AB_Account, AQBANKING_API)
00044
00045
00046
00047 void AB_Account_List2_FreeAll(AB_ACCOUNT_LIST2 *al);
00048
00049 typedef enum {
00050 AB_AccountType_Unknown=0,
00051 AB_AccountType_Bank,
00052 AB_AccountType_CreditCard,
00053 AB_AccountType_Checking,
00054 AB_AccountType_Savings,
00055 AB_AccountType_Investment,
00056 AB_AccountType_Cash
00057 } AB_ACCOUNT_TYPE;
00058
00059 #ifdef __cplusplus
00060 }
00061 #endif
00062
00063
00064 #include <aqbanking/banking.h>
00065 #include <aqbanking/provider.h>
00066 #include <aqbanking/job.h>
00067 #include <aqbanking/user.h>
00068
00069
00070 #ifdef __cplusplus
00071 extern "C" {
00072 #endif
00073
00074 AQBANKING_API
00075 void AB_Account_free(AB_ACCOUNT *acc);
00076
00077 AQBANKING_API
00078 AB_BANKING *AB_Account_GetBanking(const AB_ACCOUNT *acc);
00079
00080 AQBANKING_API
00081 AB_ACCOUNT_TYPE AB_Account_GetAccountType(const AB_ACCOUNT *acc);
00082 AQBANKING_API
00083 void AB_Account_SetAccountType(AB_ACCOUNT *acc, AB_ACCOUNT_TYPE t);
00084
00085 AQBANKING_API
00086 uint32_t AB_Account_GetUniqueId(const AB_ACCOUNT *acc);
00087
00088 AQBANKING_API
00089 void AB_Account_SetUniqueId(AB_ACCOUNT *acc, uint32_t id);
00090
00091 AQBANKING_API
00092 const char *AB_Account_GetBackendName(const AB_ACCOUNT *acc);
00093
00094
00095 AQBANKING_API
00096 AB_PROVIDER *AB_Account_GetProvider(const AB_ACCOUNT *acc);
00097
00098 AQBANKING_API
00099 GWEN_DB_NODE *AB_Account_GetAppData(const AB_ACCOUNT *acc);
00100 AQBANKING_API
00101 GWEN_DB_NODE *AB_Account_GetProviderData(const AB_ACCOUNT *acc);
00102
00103 AQBANKING_API
00104 const char *AB_Account_GetAccountNumber(const AB_ACCOUNT *acc);
00105 AQBANKING_API
00106 void AB_Account_SetAccountNumber(AB_ACCOUNT *acc, const char *s);
00107
00108 AQBANKING_API
00109 const char *AB_Account_GetBankCode(const AB_ACCOUNT *acc);
00110 AQBANKING_API
00111 void AB_Account_SetBankCode(AB_ACCOUNT *acc, const char *s);
00112
00117 AQBANKING_API
00118 const char *AB_Account_GetAccountName(const AB_ACCOUNT *acc);
00119 AQBANKING_API
00120 void AB_Account_SetAccountName(AB_ACCOUNT *acc, const char *s);
00121
00123 AQBANKING_API
00124 const char *AB_Account_GetBankName(const AB_ACCOUNT *acc);
00125 AQBANKING_API
00126 void AB_Account_SetBankName(AB_ACCOUNT *acc, const char *s);
00127
00128 AQBANKING_API
00129 const char *AB_Account_GetIBAN(const AB_ACCOUNT *a);
00130 AQBANKING_API
00131 void AB_Account_SetIBAN(AB_ACCOUNT *a, const char *s);
00132
00133
00134 AQBANKING_API
00135 const char *AB_Account_GetBIC(const AB_ACCOUNT *a);
00136 AQBANKING_API
00137 void AB_Account_SetBIC(AB_ACCOUNT *a, const char *s);
00138
00139
00140 AQBANKING_API
00141 const char *AB_Account_GetOwnerName(const AB_ACCOUNT *acc);
00142 AQBANKING_API
00143 void AB_Account_SetOwnerName(AB_ACCOUNT *acc, const char *s);
00144
00145 AQBANKING_API
00146 const char *AB_Account_GetCurrency(const AB_ACCOUNT *acc);
00147
00148 AQBANKING_API
00149 void AB_Account_SetCurrency(AB_ACCOUNT *acc, const char *s);
00150
00154 AQBANKING_API
00155 const char *AB_Account_GetCountry(const AB_ACCOUNT *acc);
00156
00157 AQBANKING_API
00158 void AB_Account_SetCountry(AB_ACCOUNT *acc, const char *s);
00159
00165 AQBANKING_API
00166 AB_USER_LIST2 *AB_Account_GetUsers(const AB_ACCOUNT *acc);
00167
00168 AQBANKING_API
00169 AB_USER *AB_Account_GetFirstUser(const AB_ACCOUNT *acc);
00170
00171 AQBANKING_API
00172 void AB_Account_SetUsers(AB_ACCOUNT *acc, const AB_USER_LIST2 *ul);
00173
00174 AQBANKING_API
00175 void AB_Account_SetUser(AB_ACCOUNT *acc, const AB_USER *u);
00176
00177
00178 AQBANKING_API
00179 AB_USER_LIST2 *AB_Account_GetSelectedUsers(const AB_ACCOUNT *acc);
00180
00181 AQBANKING_API
00182 AB_USER *AB_Account_GetFirstSelectedUser(const AB_ACCOUNT *acc);
00183
00184 AQBANKING_API
00185 void AB_Account_SetSelectedUsers(AB_ACCOUNT *acc, const AB_USER_LIST2 *ul);
00186
00187 AQBANKING_API
00188 void AB_Account_SetSelectedUser(AB_ACCOUNT *a, const AB_USER *u);
00189
00190
00191
00192
00193 #ifdef __cplusplus
00194 }
00195 #endif
00196
00197
00199
00200
00201 #endif