00001 /*************************************************************************** 00002 $RCSfile$ 00003 ------------------- 00004 cvs : $Id: accstatus.h 1396 2007-11-22 17:37:27Z martin $ 00005 begin : Mon Apr 05 2004 00006 copyright : (C) 2004 by Martin Preuss 00007 email : martin@libchipcard.de 00008 00009 *************************************************************************** 00010 * This file is part of the project "AqBanking". * 00011 * Please see toplevel file COPYING of that project for license details. * 00012 ***************************************************************************/ 00013 00014 00015 #ifndef AQBANKING_ACCSTATUS_H 00016 #define AQBANKING_ACCSTATUS_H 00017 00018 #include <aqbanking/value.h> 00019 #include <aqbanking/balance.h> 00020 00021 #include <gwenhywfar/gwentime.h> 00022 #include <gwenhywfar/list2.h> 00023 00024 00025 #ifdef __cplusplus 00026 extern "C" { 00027 #endif 00028 00029 typedef struct AB_ACCOUNT_STATUS AB_ACCOUNT_STATUS; 00030 00031 GWEN_LIST2_FUNCTION_LIB_DEFS(AB_ACCOUNT_STATUS, AB_AccountStatus, 00032 AQBANKING_API) 00033 00034 00035 AQBANKING_API 00036 AB_ACCOUNT_STATUS *AB_AccountStatus_new(); 00037 AQBANKING_API 00038 AB_ACCOUNT_STATUS *AB_AccountStatus_dup(const AB_ACCOUNT_STATUS *as); 00039 AQBANKING_API 00040 AB_ACCOUNT_STATUS *AB_AccountStatus_fromDb(GWEN_DB_NODE *db); 00041 AQBANKING_API 00042 int AB_AccountStatus_toDb(const AB_ACCOUNT_STATUS *as, GWEN_DB_NODE *db); 00043 00044 AQBANKING_API 00045 void AB_AccountStatus_free(AB_ACCOUNT_STATUS *as); 00046 00047 00048 AQBANKING_API 00049 const GWEN_TIME* 00050 AB_AccountStatus_GetTime(const AB_ACCOUNT_STATUS *as); 00051 AQBANKING_API 00052 void AB_AccountStatus_SetTime(AB_ACCOUNT_STATUS *as, 00053 const GWEN_TIME *t); 00054 AQBANKING_API 00055 const AB_VALUE* 00056 AB_AccountStatus_GetBankLine(const AB_ACCOUNT_STATUS *as); 00057 AQBANKING_API 00058 void AB_AccountStatus_SetBankLine(AB_ACCOUNT_STATUS *as, 00059 const AB_VALUE *v); 00060 00061 AQBANKING_API 00062 const AB_VALUE* 00063 AB_AccountStatus_GetDisposable(const AB_ACCOUNT_STATUS *as); 00064 AQBANKING_API 00065 void AB_AccountStatus_SetDisposable(AB_ACCOUNT_STATUS *as, 00066 const AB_VALUE *v); 00067 00068 AQBANKING_API 00069 const AB_VALUE* 00070 AB_AccountStatus_GetDisposed(const AB_ACCOUNT_STATUS *as); 00071 AQBANKING_API 00072 void AB_AccountStatus_SetDisposed(AB_ACCOUNT_STATUS *as, 00073 const AB_VALUE *v); 00074 00075 AQBANKING_API 00076 const AB_BALANCE* 00077 AB_AccountStatus_GetBookedBalance(const AB_ACCOUNT_STATUS *as); 00078 AQBANKING_API 00079 void AB_AccountStatus_SetBookedBalance(AB_ACCOUNT_STATUS *as, 00080 const AB_BALANCE *b); 00081 00082 AQBANKING_API 00083 const AB_BALANCE* 00084 AB_AccountStatus_GetNotedBalance(const AB_ACCOUNT_STATUS *as); 00085 AQBANKING_API 00086 void AB_AccountStatus_SetNotedBalance(AB_ACCOUNT_STATUS *as, 00087 const AB_BALANCE *b); 00088 00089 00090 AQBANKING_API 00091 void AB_AccountStatus_List2_freeAll(AB_ACCOUNT_STATUS_LIST2 *asl); 00092 00093 00094 #ifdef __cplusplus 00095 } 00096 #endif 00097 00098 00099 #endif /* AQBANKING_ACCSTATUS_H */ 00100 00101