Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

jobplugin.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile: jobplugin.h,v $
00003                              -------------------
00004     cvs         : $Id: jobplugin.h,v 1.1 2005/08/05 20:33:12 aquamaniac Exp $
00005     begin       : Mon Mar 01 2004
00006     copyright   : (C) 2004 by Martin Preuss
00007     email       : martin@libchipcard.de
00008 
00009  ***************************************************************************
00010  *          Please see toplevel file COPYING for license details           *
00011  ***************************************************************************/
00012 
00013 
00014 #ifndef AH_JOBPLUGIN_H
00015 #define AH_JOBPLUGIN_H
00016 
00017 #include <gwenhywfar/misc.h>
00018 #include <gwenhywfar/inherit.h>
00019 #include <gwenhywfar/libloader.h>
00020 #include <gwenhywfar/buffer.h>
00021 
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025 typedef struct AH_JOBPLUGIN AH_JOBPLUGIN;
00026 #ifdef __cplusplus
00027 }
00028 #endif
00029 
00030 
00031 #include <aqbanking/banking.h>
00032 #include <aqbanking/job.h>
00033 #include <aqhbci/hbci.h>
00034 #include <aqhbci/job.h>
00035 #include <aqhbci/provider.h>
00036 #include <aqhbci/objectref.h> /* for AQHBCI_API */
00037 
00038 
00039 
00040 #ifdef __cplusplus
00041 extern "C" {
00042 #endif
00043 
00044 
00045 
00046 
00047 
00048 GWEN_LIST_FUNCTION_LIB_DEFS(AH_JOBPLUGIN, AH_JobPlugin, AQHBCI_API);
00049 GWEN_INHERIT_FUNCTION_LIB_DEFS(AH_JOBPLUGIN, AQHBCI_API);
00050 
00051 
00058 
00059 typedef AH_JOBPLUGIN* (*AH_JOBPLUGIN_NEWFN)(AH_PROVIDER *pro);
00060 
00061 typedef AH_JOB*
00062   (*AH_JOBPLUGIN_FACTORYFN)(AH_JOBPLUGIN *jp,
00063                             AB_JOB_TYPE jt,
00064                             AH_CUSTOMER *cu,
00065                             AH_ACCOUNT *a);
00066 
00067 typedef int
00068   (*AH_JOBPLUGIN_CHECKFN)(AH_JOBPLUGIN *jp,
00069                           AB_JOB_TYPE jt);
00070 
00074 AQHBCI_API AH_JOBPLUGIN *AH_JobPlugin_new(AH_PROVIDER *pro,
00075                                           const char *name);
00076 
00077 AQHBCI_API void AH_JobPlugin_free(AH_JOBPLUGIN *jp);
00078 
00079 
00080 AQHBCI_API GWEN_LIBLOADER *AH_JobPlugin_GetLibLoader(const AH_JOBPLUGIN *jp);
00081 
00082 AQHBCI_API
00083   void AH_JobPlugin_SetLibLoader(AH_JOBPLUGIN *jp, GWEN_LIBLOADER *ll);
00084 
00085 AQHBCI_API AH_PROVIDER *AH_JobPlugin_GetProvider(const AH_JOBPLUGIN *jp);
00086 
00087 
00094 AQHBCI_API AH_JOB *AH_JobPlugin_Factory(AH_JOBPLUGIN *jp,
00095                                         AB_JOB_TYPE jt,
00096                                         AH_CUSTOMER *cu,
00097                                         AH_ACCOUNT *a);
00098 
00099 AQHBCI_API int AH_JobPlugin_CheckType(AH_JOBPLUGIN *jp,
00100                                       AB_JOB_TYPE jt);
00101 
00102 AQHBCI_API const char *AH_JobPlugin_GetName(const AH_JOBPLUGIN *jp);
00103 
00104 AQHBCI_API const char *AH_JobPlugin_GetDescription(const AH_JOBPLUGIN *jp);
00105 AQHBCI_API void AH_JobPlugin_SetDescription(AH_JOBPLUGIN *jp, const char *s);
00106 
00107 
00112 AQHBCI_API
00113   void AH_JobPlugin_SetFactoryFn(AH_JOBPLUGIN *jp, AH_JOBPLUGIN_FACTORYFN f);
00114 
00115 AQHBCI_API
00116   void AH_JobPlugin_SetCheckFn(AH_JOBPLUGIN *jp, AH_JOBPLUGIN_CHECKFN f); /* defgroup */
00118 
00119 
00120 
00121 #ifdef __cplusplus
00122 }
00123 #endif
00124 
00125 #endif /* AH_JOBPLUGIN_H */
00126 
00127 
00128 

Generated on Thu Oct 6 14:49:08 2005 for aqbanking by  doxygen 1.4.4