00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00019 #ifndef AQBANKING_IMEXPORTER_BE_H
00020 #define AQBANKING_IMEXPORTER_BE_H
00021
00022
00023 #include <aqbanking/imexporter.h>
00024 #include <gwenhywfar/misc.h>
00025 #include <gwenhywfar/plugin.h>
00026
00027
00032
00033
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037
00038 typedef AB_IMEXPORTER* (*AB_IMEXPORTER_FACTORY_FN)(AB_BANKING *ab,
00039 GWEN_DB_NODE *db);
00040
00041
00046 AQBANKING_API
00047 AB_IMEXPORTER *AB_ImExporter_new(AB_BANKING *ab,
00048 const char *name);
00049 AQBANKING_API
00050 void AB_ImExporter_free(AB_IMEXPORTER *ie);
00059 typedef int (*AB_IMEXPORTER_IMPORT_FN)(AB_IMEXPORTER *ie,
00060 AB_IMEXPORTER_CONTEXT *ctx,
00061 GWEN_IO_LAYER *io,
00062 GWEN_DB_NODE *params,
00063 uint32_t guiid);
00064
00065 typedef int (*AB_IMEXPORTER_EXPORT_FN)(AB_IMEXPORTER *ie,
00066 AB_IMEXPORTER_CONTEXT *ctx,
00067 GWEN_IO_LAYER *io,
00068 GWEN_DB_NODE *params,
00069 uint32_t guiid);
00070
00074 typedef int (*AB_IMEXPORTER_CHECKFILE_FN)(AB_IMEXPORTER *ie,
00075 const char *fname,
00076 uint32_t guiid);
00077
00078
00088 AQBANKING_API
00089 void AB_ImExporter_SetImportFn(AB_IMEXPORTER *ie,
00090 AB_IMEXPORTER_IMPORT_FN f);
00091
00092 AQBANKING_API
00093 void AB_ImExporter_SetExportFn(AB_IMEXPORTER *ie,
00094 AB_IMEXPORTER_EXPORT_FN f);
00095
00096 AQBANKING_API
00097 void AB_ImExporter_SetCheckFileFn(AB_IMEXPORTER *ie,
00098 AB_IMEXPORTER_CHECKFILE_FN f);
00099
00109
00110 typedef AB_IMEXPORTER* (*AB_PLUGIN_IMEXPORTER_FACTORY_FN)(GWEN_PLUGIN *pl,
00111 AB_BANKING *ab,
00112 GWEN_DB_NODE *db);
00113
00114
00115 AQBANKING_API
00116 GWEN_PLUGIN *AB_Plugin_ImExporter_new(GWEN_PLUGIN_MANAGER *pm,
00117 const char *name,
00118 const char *fileName);
00119
00120 AQBANKING_API
00121 AB_IMEXPORTER *AB_Plugin_ImExporter_Factory(GWEN_PLUGIN *pl,
00122 AB_BANKING *ab,
00123 GWEN_DB_NODE *db);
00124
00125 AQBANKING_API
00126 void AB_Plugin_ImExporter_SetFactoryFn(GWEN_PLUGIN *pl,
00127 AB_PLUGIN_IMEXPORTER_FACTORY_FN fn);
00128
00132 #ifdef __cplusplus
00133 }
00134 #endif
00135
00137
00138
00139 #endif
00140
00141