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 <gwenhywfar/misc.h>
00017 #include <gwenhywfar/db.h>
00018 #include <aqofxconnect/aqofxconnect.h>
00019
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023
00024 typedef struct AO_USER AO_USER;
00025 GWEN_LIST_FUNCTION_LIB_DEFS(AO_USER, AO_User, AQOFXCONNECT_API)
00026
00027 #ifdef __cplusplus
00028 }
00029 #endif
00030
00031 #include <aqofxconnect/bank.h>
00032
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036
00037 AO_USER *AO_User_new(AO_BANK *b, const char *userId);
00038 void AO_User_free(AO_USER *u);
00039
00040 const char *AO_User_GetUserId(const AO_USER *u);
00041 void AO_User_SetUserId(AO_USER *u, const char *s);
00042
00043 const char *AO_User_GetUserName(const AO_USER *u);
00044 void AO_User_SetUserName(AO_USER *u, const char *s);
00045
00046 AO_BANK *AO_User_GetBank(const AO_USER *u);
00047 void AO_User_SetBank(AO_USER *u, AO_BANK *b);
00048
00049
00050 #ifdef __cplusplus
00051 }
00052 #endif
00053
00054 #include <aqofxconnect/bank.h>
00055
00056
00057
00058 #ifdef __cplusplus
00059 extern "C" {
00060 #endif
00061
00062 AO_USER *AO_User_new(AO_BANK *b, const char *userId);
00063 void AO_User_free(AO_USER *u);
00064
00065 AO_BANK *AO_User_GetBank(const AO_USER *u);
00066 const char *AO_User_GetUserId(const AO_USER *u);
00067
00068
00069 const char *AO_User_GetUserName(const AO_USER *u);
00070 void AO_User_SetUserName(AO_USER *u, const char *s);
00071
00072
00073 AO_USER *AO_User_fromDb(AO_BANK *b, GWEN_DB_NODE *db);
00074 int AO_User_toDb(const AO_USER *u, GWEN_DB_NODE *db);
00075
00076 #ifdef __cplusplus
00077 }
00078 #endif
00079
00080
00081
00082 #endif