user.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile: user.h,v $
00003                              -------------------
00004     cvs         : $Id: user.h,v 1.5 2006/02/24 03:07:59 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 AH_USER_H
00014 #define AH_USER_H
00015 
00016 #include <aqhbci/aqhbci.h>
00017 #include <gwenhywfar/misc.h>
00018 
00019 
00027 
00028 #include <aqhbci/medium.h>
00029 
00030 #include <aqbanking/user.h>
00031 
00032 #include <gwenhywfar/db.h>
00033 #include <gwenhywfar/url.h>
00034 
00035 
00036 
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif
00040 
00046 #define AH_USER_FLAGS_BANK_DOESNT_SIGN        0x00000001
00047 
00048 #define AH_USER_FLAGS_BANK_USES_SIGNSEQ       0x00000002
00049 #define AH_USER_FLAGS_RESERVED1               0x00000004
00050 #define AH_USER_FLAGS_RESERVED2               0x00000008
00051 
00053 #define AH_USER_FLAGS_KEEPALIVE               0x00000010
00054 
00057 #define AH_USER_FLAGS_IGNORE_UPD              0x00000020
00058 
00065 
00066 AQHBCI_API
00067 void AH_User_Flags_toDb(GWEN_DB_NODE *db, const char *name,
00068                         GWEN_TYPE_UINT32 flags);
00069 AQHBCI_API
00070 GWEN_TYPE_UINT32 AH_User_Flags_fromDb(GWEN_DB_NODE *db, const char *name);
00071 
00072 
00073 typedef enum {
00074   AH_UserStatusNew=0,
00075   AH_UserStatusEnabled,
00076   AH_UserStatusPending,
00077   AH_UserStatusDisabled,
00078   AH_UserStatusUnknown=999
00079 } AH_USER_STATUS;
00080 AQHBCI_API
00081 const char *AH_User_Status_toString(AH_USER_STATUS st);
00082 AQHBCI_API
00083 AH_USER_STATUS AH_User_Status_fromString(const char *s);
00084 
00085 
00086 AQHBCI_API
00087 AH_USER_STATUS AH_User_GetStatus(const AB_USER *u);
00088 AQHBCI_API
00089 void AH_User_SetStatus(AB_USER *u, AH_USER_STATUS i);
00090 
00096 AQHBCI_API
00097 GWEN_TYPE_UINT32 AH_User_GetFlags(const AB_USER *u);
00098 
00099 AQHBCI_API
00100 void AH_User_SetFlags(AB_USER *u, GWEN_TYPE_UINT32 flags);
00101 
00102 AQHBCI_API
00103 void AH_User_AddFlags(AB_USER *u, GWEN_TYPE_UINT32 flags);
00104 
00105 AQHBCI_API
00106 void AH_User_SubFlags(AB_USER *u, GWEN_TYPE_UINT32 flags);
00115 AQHBCI_API
00116 AH_MEDIUM *AH_User_GetMedium(const AB_USER *u);
00117 AQHBCI_API
00118 void AH_User_SetMedium(AB_USER *u, AH_MEDIUM *m);
00119 
00120 AQHBCI_API
00121 int AH_User_GetContextIdx(const AB_USER *u);
00122 AQHBCI_API
00123 void AH_User_SetContextIdx(AB_USER *u, int idx);
00134 AQHBCI_API
00135 AH_CRYPT_MODE AH_User_GetCryptMode(const AB_USER *u);
00136 AQHBCI_API
00137 void AH_User_SetCryptMode(AB_USER *u, AH_CRYPT_MODE m);
00138 
00139 AQHBCI_API
00140 const char *AH_User_GetPeerId(const AB_USER *u);
00141 AQHBCI_API
00142 void AH_User_SetPeerId(AB_USER *u, const char *s);
00143 
00144 AQHBCI_API
00145 const char *AH_User_GetSystemId(const AB_USER *u);
00146 AQHBCI_API
00147 void AH_User_SetSystemId(AB_USER *u, const char *s);
00148 
00149 
00150 AQHBCI_API
00151 const GWEN_URL *AH_User_GetServerUrl(const AB_USER *u);
00152 AQHBCI_API
00153 void AH_User_SetServerUrl(AB_USER *u, const GWEN_URL *url);
00154 
00155 
00156 AQHBCI_API
00157 int AH_User_GetHbciVersion(const AB_USER *u);
00158 AQHBCI_API
00159 void AH_User_SetHbciVersion(AB_USER *u, int i);
00171 AQHBCI_API
00172 int AH_User_GetHttpVMajor(const AB_USER *u);
00173 AQHBCI_API
00174 void AH_User_SetHttpVMajor(AB_USER *u, int i);
00175 
00179 AQHBCI_API
00180 int AH_User_GetHttpVMinor(const AB_USER *u);
00181 AQHBCI_API
00182 void AH_User_SetHttpVMinor(AB_USER *u, int i);
00183 
00184 
00185 
00186 AQHBCI_API
00187 const char *AH_User_GetHttpUserAgent(const AB_USER *u);
00188 AQHBCI_API
00189 void AH_User_SetHttpUserAgent(AB_USER *u, const char *s);
00195  /* defgroup */
00196 
00197 #ifdef __cplusplus
00198 }
00199 #endif
00200 
00201 #endif /* AH_USER_H */
00202 
00203 
00204 
00205 
00206 
00207 

Generated on Tue Apr 10 19:04:09 2007 for aqbanking by  doxygen 1.4.7