16 #ifndef AQBANKING_PROVIDER_BE_H 17 #define AQBANKING_PROVIDER_BE_H 22 #include <gwenhywfar/plugin.h> 23 #include <gwenhywfar/db.h> 24 #include <gwenhywfar/dialog.h> 38 #define AB_PROVIDER_FLAGS_HAS_NEWUSER_DIALOG 0x00000001 39 #define AB_PROVIDER_FLAGS_HAS_EDITUSER_DIALOG 0x00000002 40 #define AB_PROVIDER_FLAGS_HAS_NEWACCOUNT_DIALOG 0x00000004 41 #define AB_PROVIDER_FLAGS_HAS_EDITACCOUNT_DIALOG 0x00000008 42 #define AB_PROVIDER_FLAGS_HAS_USERTYPE_DIALOG 0x00000010 118 AB_PROVIDER_EXTEND_MODE um,
127 AB_PROVIDER_EXTEND_MODE um,
131 uint32_t lastVersion,
132 uint32_t currentVersion);
135 typedef GWEN_DIALOG* (*AB_PROVIDER_GET_NEWUSER_DIALOG_FN)(
AB_PROVIDER *pro,
int i);
139 typedef GWEN_DIALOG* (*AB_PROVIDER_GET_NEWACCOUNT_DIALOG_FN)(
AB_PROVIDER *pro);
143 typedef GWEN_DIALOG* (*AB_PROVIDER_GET_USERTYPE_DIALOG_FN)(
AB_PROVIDER *pro);
251 AB_PROVIDER_EXTEND_MODE em,
261 AB_PROVIDER_EXTEND_MODE em,
273 uint32_t lastVersion,
274 uint32_t currentVersion);
360 typedef AB_PROVIDER* (*AB_PLUGIN_PROVIDER_FACTORY_FN)(GWEN_PLUGIN *pl,
367 const char *fileName);
int(* AB_PROVIDER_FINI_FN)(AB_PROVIDER *pro, GWEN_DB_NODE *dbData)
struct AB_BANKING AB_BANKING
void AB_Provider_SetGetUserTypeDialogFn(AB_PROVIDER *pro, AB_PROVIDER_GET_USERTYPE_DIALOG_FN f)
int(* AB_PROVIDER_RESETQUEUE_FN)(AB_PROVIDER *pro)
int(* AB_PROVIDER_UPDATEJOB_FN)(AB_PROVIDER *pro, AB_JOB *j)
void AB_Provider_SetAddJobFn(AB_PROVIDER *pro, AB_PROVIDER_ADDJOB_FN f)
GWEN_PLUGIN * AB_Plugin_Provider_new(GWEN_PLUGIN_MANAGER *pm, const char *name, const char *fileName)
int AB_Provider_ExtendUser(AB_PROVIDER *pro, AB_USER *u, AB_PROVIDER_EXTEND_MODE em, GWEN_DB_NODE *db)
GWEN_DIALOG * AB_ProviderGetUserTypeDialog(AB_PROVIDER *pro)
int(* AB_PROVIDER_EXTEND_ACCOUNT_FN)(AB_PROVIDER *pro, AB_ACCOUNT *a, AB_PROVIDER_EXTEND_MODE um, GWEN_DB_NODE *db)
void AB_Provider_SetGetNewUserDialogFn(AB_PROVIDER *pro, AB_PROVIDER_GET_NEWUSER_DIALOG_FN f)
This file is used by AqBanking and provider backends.
void AB_Provider_SetUpdateFn(AB_PROVIDER *pro, AB_PROVIDER_UPDATE_FN f)
int(* AB_PROVIDER_EXECUTE_FN)(AB_PROVIDER *pro, AB_IMEXPORTER_CONTEXT *ctx)
void AB_Provider_SetExtendUserFn(AB_PROVIDER *pro, AB_PROVIDER_EXTEND_USER_FN f)
AB_PROVIDER *(* AB_PLUGIN_PROVIDER_FACTORY_FN)(GWEN_PLUGIN *pl, AB_BANKING *ab)
void AB_Provider_SetGetEditUserDialogFn(AB_PROVIDER *pro, AB_PROVIDER_GET_EDITUSER_DIALOG_FN f)
int AB_Provider_IsInit(const AB_PROVIDER *pro)
int AB_Provider_ResetQueue(AB_PROVIDER *pro)
int(* AB_PROVIDER_EXTEND_USER_FN)(AB_PROVIDER *pro, AB_USER *u, AB_PROVIDER_EXTEND_MODE um, GWEN_DB_NODE *db)
void AB_Plugin_Provider_SetFactoryFn(GWEN_PLUGIN *pl, AB_PLUGIN_PROVIDER_FACTORY_FN fn)
void AB_Provider_SetGetNewAccountDialogFn(AB_PROVIDER *pro, AB_PROVIDER_GET_NEWACCOUNT_DIALOG_FN f)
GWEN_DIALOG * AB_Provider_GetNewAccountDialog(AB_PROVIDER *pro)
void AB_Provider_SetResetQueueFn(AB_PROVIDER *pro, AB_PROVIDER_RESETQUEUE_FN f)
int(* AB_PROVIDER_INIT_FN)(AB_PROVIDER *pro, GWEN_DB_NODE *dbData)
void AB_Provider_SetGetEditAccountDialogFn(AB_PROVIDER *pro, AB_PROVIDER_GET_EDITACCOUNT_DIALOG_FN f)
void AB_Provider_AddFlags(AB_PROVIDER *pro, uint32_t fl)
GWEN_DIALOG *(* AB_PROVIDER_GET_EDITACCOUNT_DIALOG_FN)(AB_PROVIDER *pro, AB_ACCOUNT *a)
int AB_Provider_Update(AB_PROVIDER *pro, uint32_t lastVersion, uint32_t currentVersion)
void AB_Provider_SetFiniFn(AB_PROVIDER *pro, AB_PROVIDER_FINI_FN f)
void AB_Provider_SetExtendAccountFn(AB_PROVIDER *pro, AB_PROVIDER_EXTEND_ACCOUNT_FN f)
GWEN_DIALOG * AB_Provider_GetEditUserDialog(AB_PROVIDER *pro, AB_USER *u)
int AB_Provider_ExtendAccount(AB_PROVIDER *pro, AB_ACCOUNT *a, AB_PROVIDER_EXTEND_MODE em, GWEN_DB_NODE *db)
void AB_Provider_SetUpdateJobFn(AB_PROVIDER *pro, AB_PROVIDER_UPDATEJOB_FN f)
void AB_Provider_SetExecuteFn(AB_PROVIDER *pro, AB_PROVIDER_EXECUTE_FN f)
struct AB_PROVIDER AB_PROVIDER
int AB_Provider_Fini(AB_PROVIDER *pro)
int AB_Provider_AddJob(AB_PROVIDER *pro, AB_JOB *j)
GWEN_DIALOG * AB_Provider_GetNewUserDialog(AB_PROVIDER *pro, int i)
GWEN_DIALOG *(* AB_PROVIDER_GET_NEWUSER_DIALOG_FN)(AB_PROVIDER *pro, int i)
int AB_Provider_UpdateJob(AB_PROVIDER *pro, AB_JOB *j)
int(* AB_PROVIDER_UPDATE_FN)(AB_PROVIDER *pro, uint32_t lastVersion, uint32_t currentVersion)
GWEN_DIALOG *(* AB_PROVIDER_GET_EDITUSER_DIALOG_FN)(AB_PROVIDER *pro, AB_USER *u)
int(* AB_PROVIDER_ADDJOB_FN)(AB_PROVIDER *pro, AB_JOB *j)
GWEN_DIALOG * AB_Provider_GetEditAccountDialog(AB_PROVIDER *pro, AB_ACCOUNT *a)
AB_PROVIDER * AB_Plugin_Provider_Factory(GWEN_PLUGIN *pl, AB_BANKING *ab)
GWEN_DIALOG *(* AB_PROVIDER_GET_NEWACCOUNT_DIALOG_FN)(AB_PROVIDER *pro)
struct AB_IMEXPORTER_CONTEXT AB_IMEXPORTER_CONTEXT
GWEN_DIALOG *(* AB_PROVIDER_GET_USERTYPE_DIALOG_FN)(AB_PROVIDER *pro)
AB_PROVIDER * AB_Provider_new(AB_BANKING *ab, const char *name)
int AB_Provider_Init(AB_PROVIDER *pro)
int AB_Provider_Execute(AB_PROVIDER *pro, AB_IMEXPORTER_CONTEXT *ctx)
void AB_Provider_SetInitFn(AB_PROVIDER *pro, AB_PROVIDER_INIT_FN f)
struct AB_ACCOUNT AB_ACCOUNT