aqbanking 5.0.2

imexporter_be.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  begin       : Mon Mar 01 2004
00003  copyright   : (C) 2004-2010 by Martin Preuss
00004  email       : martin@libchipcard.de
00005 
00006  ***************************************************************************
00007  * This file is part of the project "AqBanking".                           *
00008  * Please see toplevel file COPYING of that project for license details.   *
00009  ***************************************************************************/
00010 
00016 #ifndef AQBANKING_IMEXPORTER_BE_H
00017 #define AQBANKING_IMEXPORTER_BE_H
00018 
00019 
00020 #include <aqbanking/imexporter.h>
00021 #include <gwenhywfar/misc.h>
00022 #include <gwenhywfar/plugin.h>
00023 
00024 
00029 
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 typedef AB_IMEXPORTER* (*AB_IMEXPORTER_FACTORY_FN)(AB_BANKING *ab);
00036 
00037 
00042 AQBANKING_API 
00043 AB_IMEXPORTER *AB_ImExporter_new(AB_BANKING *ab,
00044                                  const char *name);
00045 AQBANKING_API 
00046 void AB_ImExporter_free(AB_IMEXPORTER *ie);
00047 
00048 
00057 AQBANKING_API
00058 void AB_ImExporter_SetFlags(AB_IMEXPORTER *ie, uint32_t flags);
00059 
00060 AQBANKING_API 
00061 void AB_ImExporter_AddFlags(AB_IMEXPORTER *ie, uint32_t flags);
00062 
00063 AQBANKING_API 
00064 void AB_ImExporter_SubFlags(AB_IMEXPORTER *ie, uint32_t flags);
00073 typedef int (*AB_IMEXPORTER_IMPORT_FN)(AB_IMEXPORTER *ie,
00074                                        AB_IMEXPORTER_CONTEXT *ctx,
00075                                        GWEN_SYNCIO *sio,
00076                                        GWEN_DB_NODE *params);
00077 
00078 typedef int (*AB_IMEXPORTER_EXPORT_FN)(AB_IMEXPORTER *ie,
00079                                        AB_IMEXPORTER_CONTEXT *ctx,
00080                                        GWEN_SYNCIO *sio,
00081                                        GWEN_DB_NODE *params);
00082 
00086 typedef int (*AB_IMEXPORTER_CHECKFILE_FN)(AB_IMEXPORTER *ie,
00087                                           const char *fname);
00088 
00089 
00095 typedef int (*AB_IMEXPORTER_GET_EDITPROFILE_DIALOG_FN)(AB_IMEXPORTER *ie,
00096                                                        GWEN_DB_NODE *params,
00097                                                        const char *testFileName,
00098                                                        GWEN_DIALOG **pDlg);
00099 
00109 AQBANKING_API 
00110 void AB_ImExporter_SetImportFn(AB_IMEXPORTER *ie,
00111                                AB_IMEXPORTER_IMPORT_FN f);
00112 
00113 AQBANKING_API 
00114 void AB_ImExporter_SetExportFn(AB_IMEXPORTER *ie,
00115                                AB_IMEXPORTER_EXPORT_FN f);
00116 
00117 AQBANKING_API
00118 void AB_ImExporter_SetCheckFileFn(AB_IMEXPORTER *ie,
00119                                   AB_IMEXPORTER_CHECKFILE_FN f);
00120 
00121 AQBANKING_API
00122 void AB_ImExporter_SetGetEditProfileDialogFn(AB_IMEXPORTER *ie,
00123                                              AB_IMEXPORTER_GET_EDITPROFILE_DIALOG_FN f);
00133 
00134 typedef AB_IMEXPORTER* (*AB_PLUGIN_IMEXPORTER_FACTORY_FN)(GWEN_PLUGIN *pl,
00135                                                           AB_BANKING *ab);
00136 
00137 
00138 AQBANKING_API
00139 GWEN_PLUGIN *AB_Plugin_ImExporter_new(GWEN_PLUGIN_MANAGER *pm,
00140                                       const char *name,
00141                                       const char *fileName);
00142 
00143 AQBANKING_API
00144 AB_IMEXPORTER *AB_Plugin_ImExporter_Factory(GWEN_PLUGIN *pl,
00145                                             AB_BANKING *ab);
00146 
00147 AQBANKING_API
00148 void AB_Plugin_ImExporter_SetFactoryFn(GWEN_PLUGIN *pl,
00149                                        AB_PLUGIN_IMEXPORTER_FACTORY_FN fn);
00150 
00154 #ifdef __cplusplus
00155 }
00156 #endif
00157  /* defgroup */
00159 
00160 
00161 #endif /* AQBANKING_IMEXPORTER_BE_H */
00162 
00163