00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef AO_USER_H
00014 #define AO_USER_H
00015
00016 #include <aqofxconnect/aqofxconnect.h>
00017 #include <aqbanking/provider_be.h>
00018
00019 #include <gwenhywfar/misc.h>
00020 #include <gwenhywfar/db.h>
00021
00022
00023 #define AO_USER_FLAGS_ACCOUNT_LIST 0x00000001
00024 #define AO_USER_FLAGS_STATEMENTS 0x00000002
00025 #define AO_USER_FLAGS_INVESTMENT 0x00000004
00026 #define AO_USER_FLAGS_BILLPAY 0x00000008
00027 #define AO_USER_FLAGS_EMPTY_BANKID 0x00000010
00028 #define AO_USER_FLAGS_EMPTY_FID 0x00000020
00029 #define AO_USER_FLAGS_FORCE_SSL3 0x00000040
00030
00031
00032
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036
00037 typedef enum {
00038 AO_User_ServerTypeUnknown=0,
00039 AO_User_ServerTypeHTTP,
00040 AO_User_ServerTypeHTTPS
00041 } AO_USER_SERVERTYPE;
00042
00043
00044 AQOFXCONNECT_API
00045 AO_USER_SERVERTYPE AO_User_ServerType_fromString(const char *s);
00046
00047 AQOFXCONNECT_API
00048 const char *AO_User_ServerType_toString(AO_USER_SERVERTYPE t);
00049
00050
00051 AQOFXCONNECT_API
00052 uint32_t AO_User_Flags_fromDb(GWEN_DB_NODE *db, const char *name);
00053
00054 AQOFXCONNECT_API
00055 void AO_User_Flags_toDb(GWEN_DB_NODE *db, const char *name,
00056 uint32_t fl);
00057
00058
00059 AQOFXCONNECT_API
00060 void AO_User_Extend(AB_USER *u, AB_PROVIDER *pro,
00061 AB_PROVIDER_EXTEND_MODE em,
00062 GWEN_DB_NODE *dbBackend);
00063
00064 AQOFXCONNECT_API
00065 const char *AO_User_GetBrokerId(const AB_USER *u);
00066
00067 AQOFXCONNECT_API
00068 void AO_User_SetBrokerId(AB_USER *u, const char *s);
00069
00070 AQOFXCONNECT_API
00071 const char *AO_User_GetOrg(const AB_USER *u);
00072
00073 AQOFXCONNECT_API
00074 void AO_User_SetOrg(AB_USER *u, const char *s);
00075
00076 AQOFXCONNECT_API
00077 const char *AO_User_GetFid(const AB_USER *u);
00078
00079 AQOFXCONNECT_API
00080 void AO_User_SetFid(AB_USER *u, const char *s);
00081
00082 AQOFXCONNECT_API
00083 AO_USER_SERVERTYPE AO_User_GetServerType(const AB_USER *u);
00084
00085 AQOFXCONNECT_API
00086 void AO_User_SetServerType(AB_USER *u, AO_USER_SERVERTYPE t);
00087
00088 AQOFXCONNECT_API
00089 const char *AO_User_GetServerAddr(const AB_USER *u);
00090
00091 AQOFXCONNECT_API
00092 void AO_User_SetServerAddr(AB_USER *u, const char *s);
00093
00094 AQOFXCONNECT_API
00095 int AO_User_GetServerPort(const AB_USER *u);
00096
00097 AQOFXCONNECT_API
00098 void AO_User_SetServerPort(AB_USER *u, int i);
00099
00100 AQOFXCONNECT_API
00101 uint32_t AO_User_GetFlags(const AB_USER *u);
00102
00103 AQOFXCONNECT_API
00104 void AO_User_SetFlags(AB_USER *u, uint32_t f);
00105
00106 AQOFXCONNECT_API
00107 void AO_User_AddFlags(AB_USER *u, uint32_t f);
00108
00109 AQOFXCONNECT_API
00110 void AO_User_SubFlags(AB_USER *u, uint32_t f);
00111
00112
00113
00114 AQOFXCONNECT_API
00115 const char *AO_User_GetAppId(const AB_USER *u);
00116
00117 AQOFXCONNECT_API
00118 void AO_User_SetAppId(AB_USER *u, const char *s);
00119
00120 AQOFXCONNECT_API
00121 const char *AO_User_GetAppVer(const AB_USER *u);
00122
00123 AQOFXCONNECT_API
00124 void AO_User_SetAppVer(AB_USER *u, const char *s);
00125
00126 AQOFXCONNECT_API
00127 const char *AO_User_GetHeaderVer(const AB_USER *u);
00128
00129 AQOFXCONNECT_API
00130 void AO_User_SetHeaderVer(AB_USER *u, const char *s);
00131
00132
00133 #ifdef __cplusplus
00134 }
00135 #endif
00136
00137
00138 #endif