aqbanking  5.7.8
imexporter.h
Go to the documentation of this file.
1 /***************************************************************************
2  begin : Mon Mar 01 2004
3  copyright : (C) 2004-2010 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 
11 
12 #ifndef AQBANKING_IMEXPORTER_H
13 #define AQBANKING_IMEXPORTER_H
14 
15 #include <gwenhywfar/inherit.h>
16 #include <gwenhywfar/syncio.h>
17 #include <gwenhywfar/db.h>
18 #include <gwenhywfar/types.h>
19 #include <gwenhywfar/dialog.h>
20 
21 #include <aqbanking/error.h>
22 #include <aqbanking/accstatus.h>
23 
24 
43 
44 
45 
50 
52 #define AB_IMEXPORTER_FLAGS_GETPROFILEEDITOR_SUPPORTED 0x00000001
53 
54 
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62 
65 
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 
73 #include <aqbanking/banking.h>
74 #include <aqbanking/account.h>
75 #include <aqbanking/transaction.h>
76 #include <aqbanking/security.h>
77 #include <aqbanking/message.h>
78 
79 
80 #ifdef __cplusplus
81 extern "C" {
82 #endif
83 
84 
89 
103  GWEN_SYNCIO *sio,
104  GWEN_DB_NODE *dbProfile);
105 
118  GWEN_SYNCIO *sio,
119  GWEN_DB_NODE *dbProfile);
120 
140  GWEN_DB_NODE *dbProfile,
141  const char *testFileName,
142  GWEN_DIALOG **pDlg);
143 
144 
151  const char *fname,
152  GWEN_DB_NODE *dbProfile);
153 
157  GWEN_BUFFER *buf,
158  GWEN_DB_NODE *dbProfile);
159 
163  GWEN_BUFFER *buf,
164  GWEN_DB_NODE *dbProfile);
165 
169  const char *fname,
170  GWEN_DB_NODE *dbProfile);
171 
177  const char *fname);
178 
187 
192 const char *AB_ImExporter_GetName(const AB_IMEXPORTER *ie);
193 
194 
200 uint32_t AB_ImExporter_GetFlags(const AB_IMEXPORTER *ie);
201 
202  /* defgroup */
204 
205 
206 
218 
221 
228 
234  GWEN_DB_NODE *db);
235 
241 
242 
245  GWEN_DB_NODE *db);
246 
247 
254  AB_IMEXPORTER_CONTEXT *toAdd);
255 
262 
270 
278 
286  void *user_data);
287 
312  void* user_data);
313 
322  const char *bankCode,
323  const char *accountNumber);
324 
334 
343  const char *bankCode,
344  const char *accountNumber);
345 
355 
356 
359 
373  AB_TRANSACTION *t);
374 
375 
389  AB_TRANSACTION *t);
390 
391 
394  AB_TRANSACTION *t);
395 
396 
399  AB_TRANSACTION *t);
400 
401 
402 
410  AB_SECURITY *sec);
411 
415 
419 
423  const char *nameSpace,
424  const char *id);
425 
437  AB_MESSAGE *msg);
438 
440 AB_MESSAGE*
442 
444 AB_MESSAGE*
446 
458  const char *s);
459 
461 const char *AB_ImExporterContext_GetLog(const AB_IMEXPORTER_CONTEXT *iec);
462 
465 
468  /* defgroup */
469 
470 
471 
472 
480 
489 
492  const AB_ACCOUNT *a);
493 
514 const char*
518  const char *s);
519 
524 const char*
528  const char *s);
529 
535 const char*
539  const char *s);
540 
546 const char*
550  const char *s);
551 
556 const char*
560  const char *s);
561 
562 
567 const char*
571  const char *s);
572 
577 const char*
579 
582  const char *s);
583 
584 
590 const char*
594  const char *s);
595 
601  AB_ACCOUNT_TYPE t);
602 
604 const char*
608  const char *s);
609 
615 
618 
632  AB_TRANSACTION *t);
640 
648 
659 typedef const AB_TRANSACTION *
661  void *user_data);
662 
688 const AB_TRANSACTION*
691  void* user_data);
692 
695 
701 
714  AB_SECURITY *sec);
723 
731 
744  AB_ACCOUNT_STATUS *st);
745 
754 
769 
784  AB_TRANSACTION *t);
801 
818 
821 
847  AB_TRANSACTION *t);
866 
885 
888 
911  AB_TRANSACTION *t);
928 
945 
948 
970  AB_TRANSACTION *t);
987 
1004 
1007 
1012  /* defgroup */
1013 
1014 
1025 void AB_ImExporter_Utf8ToDta(const char *p, int size, GWEN_BUFFER *buf);
1026 
1031 void AB_ImExporter_DtaToUtf8(const char *p, int size, GWEN_BUFFER *buf);
1032 
1034 void AB_ImExporter_Iso8859_1ToUtf8(const char *p,
1035  int size,
1036  GWEN_BUFFER *buf);
1037 
1039 int AH_ImExporter_DbFromIso8859_1ToUtf8(GWEN_DB_NODE *db);
1040 
1046 int AB_ImExporter_DbFromIso8859_1ToUtf8(GWEN_DB_NODE *db);
1047 
1049 GWEN_TIME *AB_ImExporter_DateFromString(const char *p,
1050  const char *tmpl,
1051  int inUtc);
1052 
1053 
1055 int AB_ImExporterContext_WriteContext(const AB_IMEXPORTER_CONTEXT *ctx, const char *ctxFile);
1056 
1061 #ifdef __cplusplus
1062 }
1063 #endif
1064 
1065 
1066 
1067 
1068 #endif /* AQBANKING_IMEXPORTER_H */
1069 
1070 
void AB_ImExporterAccountInfo_SetAccountId(AB_IMEXPORTER_ACCOUNTINFO *iea, uint32_t id)
int AB_ImExporter_CheckFile(AB_IMEXPORTER *ie, const char *fname)
AB_TRANSACTION * AB_ImExporterAccountInfo_GetFirstNotedTransaction(AB_IMEXPORTER_ACCOUNTINFO *iea)
void AB_ImExporterAccountInfo_AddTransfer(AB_IMEXPORTER_ACCOUNTINFO *iea, AB_TRANSACTION *t)
AB_TRANSACTION * AB_ImExporterAccountInfo_GetNextStandingOrder(AB_IMEXPORTER_ACCOUNTINFO *iea)
AB_TRANSACTION * AB_ImExporterAccountInfo_GetFirstDatedTransfer(AB_IMEXPORTER_ACCOUNTINFO *iea)
struct AB_BANKING AB_BANKING
Definition: banking.h:26
AB_IMEXPORTER_ACCOUNTINFO * AB_ImExporterContext_FindAccountInfo(AB_IMEXPORTER_CONTEXT *iec, const char *bankCode, const char *accountNumber)
void AB_ImExporterAccountInfo_ClearTransactions(AB_IMEXPORTER_ACCOUNTINFO *iea)
void AB_ImExporterContext_ClearLog(AB_IMEXPORTER_CONTEXT *iec)
const char * AB_ImExporterAccountInfo_GetBic(const AB_IMEXPORTER_ACCOUNTINFO *iea)
The main interface of the aqbanking library.
AB_IMEXPORTER_ACCOUNTINFO *() AB_IMEXPORTER_ACCOUNTINFO_LIST2_FOREACH(AB_IMEXPORTER_ACCOUNTINFO *element, void *user_data)
Definition: imexporter.h:285
void AB_ImExporterContext_AddTransaction(AB_IMEXPORTER_CONTEXT *iec, AB_TRANSACTION *t)
void AB_ImExporterAccountInfo_SetBankCode(AB_IMEXPORTER_ACCOUNTINFO *iea, const char *s)
struct AB_SECURITY AB_SECURITY
Definition: security.h:77
int AB_ImExporterAccountInfo_GetNotedTransactionCount(const AB_IMEXPORTER_ACCOUNTINFO *iea)
void AB_ImExporterAccountInfo_SetType(AB_IMEXPORTER_ACCOUNTINFO *iea, AB_ACCOUNT_TYPE t)
int AB_ImExporterContext_ReadDb(AB_IMEXPORTER_CONTEXT *iec, GWEN_DB_NODE *db)
void AB_ImExporterAccountInfo_AddSecurity(AB_IMEXPORTER_ACCOUNTINFO *iea, AB_SECURITY *sec)
const char * AB_ImExporterAccountInfo_GetIban(const AB_IMEXPORTER_ACCOUNTINFO *iea)
int AB_ImExporterContext_GetAccountInfoCount(const AB_IMEXPORTER_CONTEXT *iec)
void AB_ImExporterAccountInfo_AddNotedTransaction(AB_IMEXPORTER_ACCOUNTINFO *iea, AB_TRANSACTION *t)
void AB_ImExporterAccountInfo_SetBankName(AB_IMEXPORTER_ACCOUNTINFO *iea, const char *s)
const char * AB_ImExporterAccountInfo_GetDescription(const AB_IMEXPORTER_ACCOUNTINFO *iea)
const char * AB_ImExporterAccountInfo_GetBankName(const AB_IMEXPORTER_ACCOUNTINFO *iea)
struct AB_IMEXPORTER AB_IMEXPORTER
Definition: imexporter.h:63
int AB_ImExporter_GetEditProfileDialog(AB_IMEXPORTER *ie, GWEN_DB_NODE *dbProfile, const char *testFileName, GWEN_DIALOG **pDlg)
AB_IMEXPORTER_ACCOUNTINFO * AB_ImExporterAccountInfo_new(void)
#define AQBANKING_API
Definition: error.h:55
struct AB_IMEXPORTER_ACCOUNTINFO AB_IMEXPORTER_ACCOUNTINFO
Definition: imexporter.h:67
const char * AB_ImExporterContext_GetLog(const AB_IMEXPORTER_CONTEXT *iec)
AB_TRANSACTION * AB_ImExporterAccountInfo_GetNextNotedTransaction(AB_IMEXPORTER_ACCOUNTINFO *iea)
int AB_ImExporter_ImportBuffer(AB_IMEXPORTER *ie, AB_IMEXPORTER_CONTEXT *ctx, GWEN_BUFFER *buf, GWEN_DB_NODE *dbProfile)
uint32_t AB_ImExporterAccountInfo_GetAccountId(const AB_IMEXPORTER_ACCOUNTINFO *iea)
AB_IMEXPORTER_CONTEXT * AB_ImExporterContext_fromDb(GWEN_DB_NODE *db)
void AB_ImExporter_DtaToUtf8(const char *p, int size, GWEN_BUFFER *buf)
struct AB_MESSAGE AB_MESSAGE
Definition: message.h:59
AB_TRANSACTION * AB_ImExporterAccountInfo_GetNextDatedTransfer(AB_IMEXPORTER_ACCOUNTINFO *iea)
AB_SECURITY * AB_ImExporterAccountInfo_GetFirstSecurity(AB_IMEXPORTER_ACCOUNTINFO *iea)
int AB_ImExporterContext_WriteContext(const AB_IMEXPORTER_CONTEXT *ctx, const char *ctxFile)
int AB_ImExporter_Import(AB_IMEXPORTER *ie, AB_IMEXPORTER_CONTEXT *ctx, GWEN_SYNCIO *sio, GWEN_DB_NODE *dbProfile)
void AB_ImExporterContext_Clear(AB_IMEXPORTER_CONTEXT *iec)
int AB_ImExporterAccountInfo_GetDatedTransferCount(const AB_IMEXPORTER_ACCOUNTINFO *iea)
#define AQBANKING_DEPRECATED
Definition: error.h:73
void AB_ImExporterAccountInfo_AddDatedTransfer(AB_IMEXPORTER_ACCOUNTINFO *iea, AB_TRANSACTION *t)
int AB_ImExporterAccountInfo_GetStandingOrderCount(const AB_IMEXPORTER_ACCOUNTINFO *iea)
int AB_ImExporter_DbFromIso8859_1ToUtf8(GWEN_DB_NODE *db)
void AB_ImExporterContext_AddDatedTransfer(AB_IMEXPORTER_CONTEXT *iec, AB_TRANSACTION *t)
AB_ACCOUNT_STATUS * AB_ImExporterAccountInfo_GetNextAccountStatus(AB_IMEXPORTER_ACCOUNTINFO *iea)
void AB_ImExporterAccountInfo_SetOwner(AB_IMEXPORTER_ACCOUNTINFO *iea, const char *s)
AB_ACCOUNT_TYPE
int AB_ImExporterAccountInfo_GetTransactionCount(const AB_IMEXPORTER_ACCOUNTINFO *iea)
GWEN_INHERIT_FUNCTION_LIB_DEFS(AB_BANKINFO_PLUGIN,) GWEN_LIST2_FUNCTION_LIB_DEFS(AB_BANKINFO_PLUGIN
void AB_ImExporterAccountInfo_SetCurrency(AB_IMEXPORTER_ACCOUNTINFO *iea, const char *s)
int AB_ImExporter_ExportToFile(AB_IMEXPORTER *ie, AB_IMEXPORTER_CONTEXT *ctx, const char *fname, GWEN_DB_NODE *dbProfile)
AB_BANKING * AB_ImExporter_GetBanking(const AB_IMEXPORTER *ie)
AB_IMEXPORTER_ACCOUNTINFO * AB_ImExporterContext_GetAccountInfo(AB_IMEXPORTER_CONTEXT *iec, const char *bankCode, const char *accountNumber)
void AB_ImExporterAccountInfo_AddStandingOrder(AB_IMEXPORTER_ACCOUNTINFO *iea, AB_TRANSACTION *t)
int AB_ImExporter_Export(AB_IMEXPORTER *ie, AB_IMEXPORTER_CONTEXT *ctx, GWEN_SYNCIO *sio, GWEN_DB_NODE *dbProfile)
struct AB_TRANSACTION AB_TRANSACTION
Definition: transaction.h:655
AQBANKING_DEPRECATED int AH_ImExporter_DbFromIso8859_1ToUtf8(GWEN_DB_NODE *db)
AB_IMEXPORTER_ACCOUNTINFO * AB_ImExporterContext_FindAccountInfoByIban(AB_IMEXPORTER_CONTEXT *iec, const char *iban)
int AB_ImExporterAccountInfo_GetTransferCount(const AB_IMEXPORTER_ACCOUNTINFO *iea)
const AB_TRANSACTION *() AB_TRANSACTION_CONSTLIST2_FOREACH(const AB_TRANSACTION *element, void *user_data)
Definition: imexporter.h:660
AB_TRANSACTION * AB_ImExporterAccountInfo_GetNextTransaction(AB_IMEXPORTER_ACCOUNTINFO *iea)
AB_IMEXPORTER_ACCOUNTINFO * AB_ImExporterContext_GetFirstAccountInfo(AB_IMEXPORTER_CONTEXT *iec)
void AB_ImExporterContext_AddStandingOrder(AB_IMEXPORTER_CONTEXT *iec, AB_TRANSACTION *t)
GWEN_TIME * AB_ImExporter_DateFromString(const char *p, const char *tmpl, int inUtc)
void AB_ImExporterContext_free(AB_IMEXPORTER_CONTEXT *iec)
int AB_ImExporter_ImportFile(AB_IMEXPORTER *ie, AB_IMEXPORTER_CONTEXT *ctx, const char *fname, GWEN_DB_NODE *dbProfile)
AB_TRANSACTION * AB_ImExporterAccountInfo_GetFirstTransfer(AB_IMEXPORTER_ACCOUNTINFO *iea)
AB_IMEXPORTER_ACCOUNTINFO * AB_ImExporterContext_GetAccountInfoByIban(AB_IMEXPORTER_CONTEXT *iec, const char *iban)
AB_IMEXPORTER_ACCOUNTINFO * AB_ImExporterContext_GetNextAccountInfo(AB_IMEXPORTER_CONTEXT *iec)
void AB_ImExporterAccountInfo_SetIban(AB_IMEXPORTER_ACCOUNTINFO *iea, const char *s)
void AB_ImExporterContext_AddContext(AB_IMEXPORTER_CONTEXT *iec, AB_IMEXPORTER_CONTEXT *toAdd)
void AB_ImExporter_Iso8859_1ToUtf8(const char *p, int size, GWEN_BUFFER *buf)
void AB_ImExporterAccountInfo_SetAccountName(AB_IMEXPORTER_ACCOUNTINFO *iea, const char *s)
struct AB_ACCOUNT_STATUS AB_ACCOUNT_STATUS
Definition: accstatus.h:29
const char * AB_ImExporterAccountInfo_GetAccountNumber(const AB_IMEXPORTER_ACCOUNTINFO *iea)
AB_IMEXPORTER_CONTEXT * AB_ImExporterContext_new(void)
AB_TRANSACTION * AB_ImExporterAccountInfo_GetNextTransfer(AB_IMEXPORTER_ACCOUNTINFO *iea)
AB_SECURITY * AB_ImExporterContext_FindSecurity(AB_IMEXPORTER_CONTEXT *iec, const char *nameSpace, const char *id)
void AB_ImExporterContext_AddSecurity(AB_IMEXPORTER_CONTEXT *iec, AB_SECURITY *sec)
void AB_ImExporterAccountInfo_FillFromAccount(AB_IMEXPORTER_ACCOUNTINFO *iea, const AB_ACCOUNT *a)
void AB_ImExporter_Utf8ToDta(const char *p, int size, GWEN_BUFFER *buf)
void AB_ImExporterContext_AddLog(AB_IMEXPORTER_CONTEXT *iec, const char *s)
AB_IMEXPORTER_ACCOUNTINFO * AB_ImExporterContext_AccountInfoForEach(AB_IMEXPORTER_CONTEXT *iec, AB_IMEXPORTER_ACCOUNTINFO_LIST2_FOREACH func, void *user_data)
const char * AB_ImExporterAccountInfo_GetOwner(const AB_IMEXPORTER_ACCOUNTINFO *iea)
void AB_ImExporterAccountInfo_SetDescription(AB_IMEXPORTER_ACCOUNTINFO *iea, const char *s)
void AB_ImExporterAccountInfo_SetAccountNumber(AB_IMEXPORTER_ACCOUNTINFO *iea, const char *s)
AB_ACCOUNT_TYPE AB_ImExporterAccountInfo_GetType(const AB_IMEXPORTER_ACCOUNTINFO *iea)
AB_SECURITY * AB_ImExporterContext_GetFirstSecurity(AB_IMEXPORTER_CONTEXT *iec)
AB_MESSAGE * AB_ImExporterContext_GetFirstMessage(AB_IMEXPORTER_CONTEXT *iec)
void AB_ImExporterAccountInfo_free(AB_IMEXPORTER_ACCOUNTINFO *iea)
void AB_ImExporterAccountInfo_SetBic(AB_IMEXPORTER_ACCOUNTINFO *iea, const char *s)
const char * AB_ImExporterAccountInfo_GetCurrency(const AB_IMEXPORTER_ACCOUNTINFO *iea)
void AB_ImExporterAccountInfo_AddTransaction(AB_IMEXPORTER_ACCOUNTINFO *iea, AB_TRANSACTION *t)
AB_TRANSACTION * AB_ImExporterAccountInfo_GetFirstTransaction(AB_IMEXPORTER_ACCOUNTINFO *iea)
void AB_ImExporterContext_AddTransfer(AB_IMEXPORTER_CONTEXT *iec, AB_TRANSACTION *t)
const char * AB_ImExporterAccountInfo_GetBankCode(const AB_IMEXPORTER_ACCOUNTINFO *iea)
void AB_ImExporterContext_AddAccountInfo(AB_IMEXPORTER_CONTEXT *iec, AB_IMEXPORTER_ACCOUNTINFO *iea)
const AB_TRANSACTION * AB_ImExporterAccountInfo_TransactionsForEach(AB_IMEXPORTER_ACCOUNTINFO *iea, AB_TRANSACTION_CONSTLIST2_FOREACH func, void *user_data)
const char * AB_ImExporterAccountInfo_GetAccountName(const AB_IMEXPORTER_ACCOUNTINFO *iea)
AB_ACCOUNT_STATUS * AB_ImExporterAccountInfo_GetFirstAccountStatus(AB_IMEXPORTER_ACCOUNTINFO *iea)
uint32_t AB_ImExporter_GetFlags(const AB_IMEXPORTER *ie)
AB_IMEXPORTER_ACCOUNTINFO * AB_ImExporterAccountInfo_dup(const AB_IMEXPORTER_ACCOUNTINFO *oldiea)
const char * AB_ImExporter_GetName(const AB_IMEXPORTER *ie)
void AB_ImExporterAccountInfo_AddAccountStatus(AB_IMEXPORTER_ACCOUNTINFO *iea, AB_ACCOUNT_STATUS *st)
AB_SECURITY * AB_ImExporterContext_GetNextSecurity(AB_IMEXPORTER_CONTEXT *iec)
int AB_ImExporter_ExportToBuffer(AB_IMEXPORTER *ie, AB_IMEXPORTER_CONTEXT *ctx, GWEN_BUFFER *buf, GWEN_DB_NODE *dbProfile)
AB_TRANSACTION * AB_ImExporterAccountInfo_GetFirstStandingOrder(AB_IMEXPORTER_ACCOUNTINFO *iea)
void AB_ImExporterContext_AddMessage(AB_IMEXPORTER_CONTEXT *iec, AB_MESSAGE *msg)
AB_SECURITY * AB_ImExporterAccountInfo_GetNextSecurity(AB_IMEXPORTER_ACCOUNTINFO *iea)
int AB_ImExporterContext_toDb(const AB_IMEXPORTER_CONTEXT *iec, GWEN_DB_NODE *db)
AB_MESSAGE * AB_ImExporterContext_GetNextMessage(AB_IMEXPORTER_CONTEXT *iec)
struct AB_IMEXPORTER_CONTEXT AB_IMEXPORTER_CONTEXT
Definition: imexporter.h:66
struct AB_ACCOUNT AB_ACCOUNT