account.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile: account.h,v $
00003  -------------------
00004  cvs         : $Id: account.h,v 1.11 2005/03/29 01:59:20 aquamaniac Exp $
00005  begin       : Mon Mar 01 2004
00006  copyright   : (C) 2004 by Martin Preuss
00007  email       : martin@libchipcard.de
00008 
00009  ***************************************************************************
00010  *          Please see toplevel file COPYING for license details           *
00011  ***************************************************************************/
00012 
00013 
00014 #ifndef AQBANKING_ACCOUNT_H
00015 #define AQBANKING_ACCOUNT_H
00016 
00017 #include <gwenhywfar/misc.h>
00018 #include <gwenhywfar/misc2.h>
00019 #include <gwenhywfar/inherit.h>
00020 #include <gwenhywfar/types.h>
00021 #include <gwenhywfar/db.h>
00022 #include <aqbanking/error.h> /* for AQBANKING_API */
00023 
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027 
00028 typedef struct AB_ACCOUNT AB_ACCOUNT;
00029 GWEN_INHERIT_FUNCTION_LIB_DEFS(AB_ACCOUNT, AQBANKING_API)
00030 GWEN_LIST2_FUNCTION_LIB_DEFS(AB_ACCOUNT, AB_Account, AQBANKING_API)
00031 /* Do not terminate these lines with semicolon because they are
00032    macros, not functions, and ISO C89 does not allow a semicolon
00033    there. */
00034 
00035 typedef enum {
00036   AB_AccountType_Unknown=0,
00037   AB_AccountType_Bank,
00038   AB_AccountType_CreditCard,
00039   AB_AccountType_Checking,
00040   AB_AccountType_Savings,
00041   AB_AccountType_Investment,
00042   AB_AccountType_Cash
00043 } AB_ACCOUNT_TYPE;
00044 
00045 #ifdef __cplusplus
00046 }
00047 #endif
00048 
00049 
00050 #include <aqbanking/banking.h>
00051 #include <aqbanking/provider.h>
00052 #include <aqbanking/job.h>
00053 
00054 
00055 #ifdef __cplusplus
00056 extern "C" {
00057 #endif
00058 
00067 
00068 
00069 AQBANKING_API 
00070 void AB_Account_free(AB_ACCOUNT *acc);
00071 
00072 AQBANKING_API 
00073 AB_BANKING *AB_Account_GetBanking(const AB_ACCOUNT *acc);
00074 
00075 AQBANKING_API 
00076 int AB_Account_CheckAvailability(AB_ACCOUNT *a);
00077 
00078 AQBANKING_API 
00079 AB_ACCOUNT_TYPE AB_Account_GetAccountType(const AB_ACCOUNT *acc);
00080 AQBANKING_API 
00081 void AB_Account_SetAccountType(AB_ACCOUNT *acc, AB_ACCOUNT_TYPE t);
00082 
00083 AQBANKING_API 
00084 GWEN_TYPE_UINT32 AB_Account_GetUniqueId(const AB_ACCOUNT *acc);
00085 AQBANKING_API 
00086 void AB_Account_SetUniqueId(AB_ACCOUNT *acc, GWEN_TYPE_UINT32 id);
00087 
00088 AQBANKING_API 
00089 AB_PROVIDER *AB_Account_GetProvider(const AB_ACCOUNT *acc);
00090 
00091 AQBANKING_API 
00092 GWEN_DB_NODE *AB_Account_GetAppData(const AB_ACCOUNT *acc);
00093 AQBANKING_API 
00094 GWEN_DB_NODE *AB_Account_GetProviderData(const AB_ACCOUNT *acc);
00095 
00096 AQBANKING_API 
00097 const char *AB_Account_GetAccountNumber(const AB_ACCOUNT *acc);
00098 AQBANKING_API 
00099 void AB_Account_SetAccountNumber(AB_ACCOUNT *acc, const char *s);
00100 
00101 AQBANKING_API 
00102 const char *AB_Account_GetBankCode(const AB_ACCOUNT *acc);
00103 AQBANKING_API 
00104 void AB_Account_SetBankCode(AB_ACCOUNT *acc, const char *s);
00105 
00110 AQBANKING_API 
00111 const char *AB_Account_GetAccountName(const AB_ACCOUNT *acc);
00112 AQBANKING_API 
00113 void AB_Account_SetAccountName(AB_ACCOUNT *acc, const char *s);
00114 
00116 AQBANKING_API 
00117 const char *AB_Account_GetBankName(const AB_ACCOUNT *acc);
00118 AQBANKING_API 
00119 void AB_Account_SetBankName(AB_ACCOUNT *acc, const char *s);
00120 
00121 AQBANKING_API 
00122 const char *AB_Account_GetOwnerName(const AB_ACCOUNT *acc);
00123 AQBANKING_API 
00124 void AB_Account_SetOwnerName(AB_ACCOUNT *acc, const char *s);
00125 
00126 AQBANKING_API 
00127 const char *AB_Account_GetCurrency(const AB_ACCOUNT *acc);
00128 
00129 AQBANKING_API 
00130 void AB_Account_SetCurrency(AB_ACCOUNT *acc, const char *s);
00131 
00135 AQBANKING_API 
00136 const char *AB_Account_GetCountry(const AB_ACCOUNT *acc);
00137 
00138 AQBANKING_API
00139 void AB_Account_SetCountry(AB_ACCOUNT *acc, const char *s);
00140 
00144 #ifdef __cplusplus
00145 }
00146 #endif
00147 
00148 
00149 
00150 #endif /* AQBANKING_ACCOUNT_H */

Generated on Sat Jan 7 04:22:41 2006 for aqbanking by  doxygen 1.4.6