00001 /*************************************************************************** 00002 $RCSfile: account.h,v $ 00003 ------------------- 00004 cvs : $Id: account.h,v 1.1 2005/08/08 02:24:41 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 #ifndef AO_ACCOUNT_H 00014 #define AO_ACCOUNT_H 00015 00016 #include <aqbanking/account_be.h> 00017 #include <aqofxconnect/provider.h> 00018 00019 00020 #ifdef __cplusplus 00021 extern "C" { 00022 #endif 00023 00024 00025 typedef struct AO_ACCOUNT AO_ACCOUNT; 00026 00027 00028 AB_ACCOUNT *AO_Account_new(AB_BANKING *ab, 00029 AB_PROVIDER *pro, 00030 const char *idForProvider); 00031 00032 00033 AB_ACCOUNT *AO_Account_fromDb(AB_BANKING *ab, 00034 GWEN_DB_NODE *db); 00035 00036 int AO_Account_toDb(const AB_ACCOUNT *acc, GWEN_DB_NODE *db); 00037 00038 00039 int AO_Account_GetMaxPurposeLines(const AB_ACCOUNT *acc); 00040 void AO_Account_SetMaxPurposeLines(AB_ACCOUNT *acc, int i); 00041 00042 int AO_Account_GetDebitAllowed(const AB_ACCOUNT *acc); 00043 void AO_Account_SetDebitAllowed(AB_ACCOUNT *acc, int i); 00044 00045 const char *AO_Account_GetUserId(const AB_ACCOUNT *acc); 00046 void AO_Account_SetUserId(AB_ACCOUNT *acc, const char *s); 00047 00048 00049 00050 00051 #ifdef __cplusplus 00052 } 00053 #endif 00054 00055 00056 #endif