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
00063 AQOFXCONNECT_API
00064 const char *AO_User_GetBrokerId(const AB_USER *u);
00065
00066 AQOFXCONNECT_API
00067 void AO_User_SetBrokerId(AB_USER *u, const char *s);
00068
00069 AQOFXCONNECT_API
00070 const char *AO_User_GetOrg(const AB_USER *u);
00071
00072 AQOFXCONNECT_API
00073 void AO_User_SetOrg(AB_USER *u, const char *s);
00074
00075 AQOFXCONNECT_API
00076 const char *AO_User_GetFid(const AB_USER *u);
00077
00078 AQOFXCONNECT_API
00079 void AO_User_SetFid(AB_USER *u, const char *s);
00080
00081 AQOFXCONNECT_API
00082 AO_USER_SERVERTYPE AO_User_GetServerType(const AB_USER *u);
00083
00084 AQOFXCONNECT_API
00085 void AO_User_SetServerType(AB_USER *u, AO_USER_SERVERTYPE t);
00086
00087 AQOFXCONNECT_API
00088 const char *AO_User_GetServerAddr(const AB_USER *u);
00089
00090 AQOFXCONNECT_API
00091 void AO_User_SetServerAddr(AB_USER *u, const char *s);
00092
00093 AQOFXCONNECT_API
00094 int AO_User_GetServerPort(const AB_USER *u);
00095
00096 AQOFXCONNECT_API
00097 void AO_User_SetServerPort(AB_USER *u, int i);
00098
00099 AQOFXCONNECT_API
00100 uint32_t AO_User_GetFlags(const AB_USER *u);
00101
00102 AQOFXCONNECT_API
00103 void AO_User_SetFlags(AB_USER *u, uint32_t f);
00104
00105 AQOFXCONNECT_API
00106 void AO_User_AddFlags(AB_USER *u, uint32_t f);
00107
00108 AQOFXCONNECT_API
00109 void AO_User_SubFlags(AB_USER *u, uint32_t f);
00110
00111
00112
00113 AQOFXCONNECT_API
00114 const char *AO_User_GetAppId(const AB_USER *u);
00115
00116 AQOFXCONNECT_API
00117 void AO_User_SetAppId(AB_USER *u, const char *s);
00118
00119 AQOFXCONNECT_API
00120 const char *AO_User_GetAppVer(const AB_USER *u);
00121
00122 AQOFXCONNECT_API
00123 void AO_User_SetAppVer(AB_USER *u, const char *s);
00124
00125 AQOFXCONNECT_API
00126 const char *AO_User_GetHeaderVer(const AB_USER *u);
00127
00128 AQOFXCONNECT_API
00129 void AO_User_SetHeaderVer(AB_USER *u, const char *s);
00130
00131
00132 #ifdef __cplusplus
00133 }
00134 #endif
00135
00136
00137 #endif