00001 /*************************************************************************** 00002 $RCSfile: account.h,v $ 00003 ------------------- 00004 cvs : $Id: account.h,v 1.1 2005/08/08 02:24:40 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 AG_ACCOUNT_H 00014 #define AG_ACCOUNT_H 00015 00016 #include <aqbanking/account_be.h> 00017 #include <aqgeldkarte/provider.h> 00018 00019 00020 #ifdef __cplusplus 00021 extern "C" { 00022 #endif 00023 00024 00025 typedef struct AG_ACCOUNT AG_ACCOUNT; 00026 00027 00028 AB_ACCOUNT *AG_Account_new(AB_BANKING *ab, 00029 AB_PROVIDER *pro, 00030 const char *idForProvider); 00031 00032 00033 AB_ACCOUNT *AG_Account_fromDb(AB_BANKING *ab, 00034 GWEN_DB_NODE *db); 00035 00036 int AG_Account_toDb(const AB_ACCOUNT *acc, GWEN_DB_NODE *db); 00037 00038 00039 const char *AG_Account_GetCardId(const AB_ACCOUNT *acc); 00040 void AG_Account_SetCardId(AB_ACCOUNT *acc, const char *s); 00041 00042 00043 00044 00045 00046 00047 00048 #ifdef __cplusplus 00049 } 00050 #endif 00051 00052 00053 #endif