aqbanking  5.7.8
banking.h
Go to the documentation of this file.
1 /***************************************************************************
2  begin : Mon Mar 01 2004
3  copyright : (C) 2004 by Martin Preuss
4  email : martin@libchipcard.de
5 
6  ***************************************************************************
7  * This file is part of the project "AqBanking". *
8  * Please see toplevel file COPYING of that project for license details. *
9  ***************************************************************************/
10 
15 #ifndef AQBANKING_BANKING_H
16 #define AQBANKING_BANKING_H
17 
18 
22 
26 typedef struct AB_BANKING AB_BANKING;
31 #include <gwenhywfar/inherit.h>
32 #include <gwenhywfar/types.h>
33 #include <gwenhywfar/db.h>
34 #include <gwenhywfar/stringlist.h>
35 #include <gwenhywfar/plugindescr.h>
36 #include <gwenhywfar/dialog.h>
37 
38 #include <aqbanking/error.h> /* for AQBANKING_API */
39 #include <aqbanking/version.h>
40 
41 /* outsourced */
42 #include <aqbanking/banking_virt.h>
43 #include <aqbanking/banking_imex.h>
44 #include <aqbanking/banking_info.h>
45 #include <aqbanking/banking_ob.h>
47 #include <aqbanking/banking_cfg.h>
48 
49 #include <aqbanking/provider.h>
50 
51 #define AB_PM_LIBNAME "aqbanking"
52 #define AB_PM_SYSCONFDIR "sysconfdir"
53 #define AB_PM_DATADIR "datadir"
54 #define AB_PM_WIZARDDIR "wizarddir"
55 #define AB_PM_LOCALEDIR "localedir"
56 
57 
58 
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62 
63 
64 
84 
89 #define AB_BANKING_EXTENSION_NONE 0x00000000
90 
97 
98 
99 
100 
104 
142 AB_BANKING *AB_Banking_new(const char *appName,
143  const char *dname,
144  uint32_t extensions);
145 
146 
153 void AB_Banking_free(AB_BANKING *ab);
154 
155 
157 void AB_Banking_GetVersion(int *major,
158  int *minor,
159  int *patchlevel,
160  int *build);
161 
162 
174 int AB_Banking_Init(AB_BANKING *ab);
175 
187 int AB_Banking_Fini(AB_BANKING *ab);
188 
189 
200 
201 
211 
212 
221 
226 const GWEN_STRINGLIST *AB_Banking_GetActiveProviders(const AB_BANKING *ab);
227 
229 GWEN_PLUGIN_DESCRIPTION_LIST2 *AB_Banking_GetProviderDescrs(AB_BANKING *ab);
230 
248 GWEN_DIALOG *AB_Banking_GetNewUserDialog(AB_BANKING *ab,
249  const char *backend,
250  int mode);
251 
269 
270 
279  const char *backend,
280  const char *frontends,
281  GWEN_BUFFER *pbuf);
282 
285  const char *backend,
286  const char *frontends,
287  GWEN_BUFFER *pbuf);
288 
289 
304 const char *AB_Banking_GetAppName(const AB_BANKING *ab);
305 
313 const char *AB_Banking_GetEscapedAppName(const AB_BANKING *ab);
314 
323 int AB_Banking_GetUserDataDir(const AB_BANKING *ab, GWEN_BUFFER *buf);
324 
337 int AB_Banking_GetAppUserDataDir(const AB_BANKING *ab, GWEN_BUFFER *buf);
338 
349  const char *name,
350  GWEN_BUFFER *buf);
351 
363 
375 void AB_Banking_SetUserData(AB_BANKING *ab, void *user_data);
376 
389 
390 
392 GWEN_PLUGIN_DESCRIPTION_LIST2 *AB_Banking_GetWizardDescrs(AB_BANKING *ab);
393 
394 
396 GWEN_PLUGIN_DESCRIPTION_LIST2 *AB_Banking_GetDebuggerDescrs(AB_BANKING *ab,
397  const char *pn);
402  /* addtogroup */
403 
404 
405 #ifdef __cplusplus
406 }
407 #endif
408 
409 
410 
411 #endif
412 
413 
414 
struct AB_BANKING AB_BANKING
Definition: banking.h:26
int AB_Banking_OnlineInit(AB_BANKING *ab)
GWEN_PLUGIN_DESCRIPTION_LIST2 * AB_Banking_GetProviderDescrs(AB_BANKING *ab)
This file is used by AqBanking and provider backends.
int AB_Banking_GetUserDataDir(const AB_BANKING *ab, GWEN_BUFFER *buf)
AQBANKING_DEPRECATED int AB_Banking_FindDebugger(AB_BANKING *ab, const char *backend, const char *frontends, GWEN_BUFFER *pbuf)
int AB_Banking_Fini(AB_BANKING *ab)
void AB_Banking_free(AB_BANKING *ab)
#define AQBANKING_API
Definition: error.h:55
int AB_Banking_OnlineFini(AB_BANKING *ab)
AQBANKING_DEPRECATED GWEN_PLUGIN_DESCRIPTION_LIST2 * AB_Banking_GetDebuggerDescrs(AB_BANKING *ab, const char *pn)
AQBANKING_DEPRECATED int AB_Banking_FindWizard(AB_BANKING *ab, const char *backend, const char *frontends, GWEN_BUFFER *pbuf)
#define AQBANKING_DEPRECATED
Definition: error.h:73
void * AB_Banking_GetUserData(AB_BANKING *ab)
GWEN_INHERIT_FUNCTION_LIB_DEFS(AB_BANKINFO_PLUGIN,) GWEN_LIST2_FUNCTION_LIB_DEFS(AB_BANKINFO_PLUGIN
void AB_Banking_SetUserData(AB_BANKING *ab, void *user_data)
AQBANKING_DEPRECATED GWEN_PLUGIN_DESCRIPTION_LIST2 * AB_Banking_GetWizardDescrs(AB_BANKING *ab)
void AB_Banking_GetVersion(int *major, int *minor, int *patchlevel, int *build)
AB_BANKING * AB_Banking_new(const char *appName, const char *dname, uint32_t extensions)
int AB_Banking_GetSharedDataDir(const AB_BANKING *ab, const char *name, GWEN_BUFFER *buf)
const char * AB_Banking_GetAppName(const AB_BANKING *ab)
int AB_Banking_Init(AB_BANKING *ab)
int AB_Banking_GetAppUserDataDir(const AB_BANKING *ab, GWEN_BUFFER *buf)
const GWEN_STRINGLIST * AB_Banking_GetActiveProviders(const AB_BANKING *ab)
GWEN_DIALOG * AB_Banking_GetNewUserDialog(AB_BANKING *ab, const char *backend, int mode)
const char * AB_Banking_GetEscapedAppName(const AB_BANKING *ab)