aqbanking  5.7.8
Typedefs | Functions
imexporter.h File Reference
#include <gwenhywfar/inherit.h>
#include <gwenhywfar/syncio.h>
#include <gwenhywfar/db.h>
#include <gwenhywfar/types.h>
#include <gwenhywfar/dialog.h>
#include <aqbanking/error.h>
#include <aqbanking/accstatus.h>
#include <aqbanking/banking.h>
#include <aqbanking/account.h>
#include <aqbanking/transaction.h>
#include <aqbanking/security.h>
#include <aqbanking/message.h>

Go to the source code of this file.

Macros

Flags returned by @ref AB_ImExporter_GetFlags
#define AB_IMEXPORTER_FLAGS_GETPROFILEEDITOR_SUPPORTED   0x00000001
 

Typedefs

typedef struct AB_IMEXPORTER AB_IMEXPORTER
 
typedef struct AB_IMEXPORTER_CONTEXT AB_IMEXPORTER_CONTEXT
 
typedef struct AB_IMEXPORTER_ACCOUNTINFO AB_IMEXPORTER_ACCOUNTINFO
 
typedef AB_IMEXPORTER_ACCOUNTINFO *() AB_IMEXPORTER_ACCOUNTINFO_LIST2_FOREACH(AB_IMEXPORTER_ACCOUNTINFO *element, void *user_data)
 

Functions

AB_BANKINGAB_ImExporter_GetBanking (const AB_IMEXPORTER *ie)
 
const char * AB_ImExporter_GetName (const AB_IMEXPORTER *ie)
 
uint32_t AB_ImExporter_GetFlags (const AB_IMEXPORTER *ie)
 
AB_IMEXPORTER_CONTEXTAB_ImExporterContext_new (void)
 
void AB_ImExporterContext_free (AB_IMEXPORTER_CONTEXT *iec)
 
void AB_ImExporterContext_Clear (AB_IMEXPORTER_CONTEXT *iec)
 
int AB_ImExporterContext_toDb (const AB_IMEXPORTER_CONTEXT *iec, GWEN_DB_NODE *db)
 
AB_IMEXPORTER_CONTEXTAB_ImExporterContext_fromDb (GWEN_DB_NODE *db)
 
int AB_ImExporterContext_ReadDb (AB_IMEXPORTER_CONTEXT *iec, GWEN_DB_NODE *db)
 
void AB_ImExporterContext_AddContext (AB_IMEXPORTER_CONTEXT *iec, AB_IMEXPORTER_CONTEXT *toAdd)
 
void AB_ImExporterContext_AddAccountInfo (AB_IMEXPORTER_CONTEXT *iec, AB_IMEXPORTER_ACCOUNTINFO *iea)
 
AB_IMEXPORTER_ACCOUNTINFOAB_ImExporterContext_GetFirstAccountInfo (AB_IMEXPORTER_CONTEXT *iec)
 
AB_IMEXPORTER_ACCOUNTINFOAB_ImExporterContext_GetNextAccountInfo (AB_IMEXPORTER_CONTEXT *iec)
 
AB_IMEXPORTER_ACCOUNTINFOAB_ImExporterContext_AccountInfoForEach (AB_IMEXPORTER_CONTEXT *iec, AB_IMEXPORTER_ACCOUNTINFO_LIST2_FOREACH func, void *user_data)
 
AB_IMEXPORTER_ACCOUNTINFOAB_ImExporterContext_FindAccountInfo (AB_IMEXPORTER_CONTEXT *iec, const char *bankCode, const char *accountNumber)
 
AB_IMEXPORTER_ACCOUNTINFOAB_ImExporterContext_FindAccountInfoByIban (AB_IMEXPORTER_CONTEXT *iec, const char *iban)
 
AB_IMEXPORTER_ACCOUNTINFOAB_ImExporterContext_GetAccountInfo (AB_IMEXPORTER_CONTEXT *iec, const char *bankCode, const char *accountNumber)
 
AB_IMEXPORTER_ACCOUNTINFOAB_ImExporterContext_GetAccountInfoByIban (AB_IMEXPORTER_CONTEXT *iec, const char *iban)
 
int AB_ImExporterContext_GetAccountInfoCount (const AB_IMEXPORTER_CONTEXT *iec)
 
void AB_ImExporterContext_AddTransaction (AB_IMEXPORTER_CONTEXT *iec, AB_TRANSACTION *t)
 
void AB_ImExporterContext_AddTransfer (AB_IMEXPORTER_CONTEXT *iec, AB_TRANSACTION *t)
 
void AB_ImExporterContext_AddStandingOrder (AB_IMEXPORTER_CONTEXT *iec, AB_TRANSACTION *t)
 
void AB_ImExporterContext_AddDatedTransfer (AB_IMEXPORTER_CONTEXT *iec, AB_TRANSACTION *t)
 
void AB_ImExporterContext_AddSecurity (AB_IMEXPORTER_CONTEXT *iec, AB_SECURITY *sec)
 
AB_SECURITYAB_ImExporterContext_GetFirstSecurity (AB_IMEXPORTER_CONTEXT *iec)
 
AB_SECURITYAB_ImExporterContext_GetNextSecurity (AB_IMEXPORTER_CONTEXT *iec)
 
AB_SECURITYAB_ImExporterContext_FindSecurity (AB_IMEXPORTER_CONTEXT *iec, const char *nameSpace, const char *id)
 
void AB_ImExporterContext_AddMessage (AB_IMEXPORTER_CONTEXT *iec, AB_MESSAGE *msg)
 
AB_MESSAGEAB_ImExporterContext_GetFirstMessage (AB_IMEXPORTER_CONTEXT *iec)
 
AB_MESSAGEAB_ImExporterContext_GetNextMessage (AB_IMEXPORTER_CONTEXT *iec)
 
void AB_ImExporterContext_AddLog (AB_IMEXPORTER_CONTEXT *iec, const char *s)
 
const char * AB_ImExporterContext_GetLog (const AB_IMEXPORTER_CONTEXT *iec)
 
void AB_ImExporterContext_ClearLog (AB_IMEXPORTER_CONTEXT *iec)
 
Virtual Functions for Backends
int AB_ImExporter_Import (AB_IMEXPORTER *ie, AB_IMEXPORTER_CONTEXT *ctx, GWEN_SYNCIO *sio, GWEN_DB_NODE *dbProfile)
 
int AB_ImExporter_Export (AB_IMEXPORTER *ie, AB_IMEXPORTER_CONTEXT *ctx, GWEN_SYNCIO *sio, GWEN_DB_NODE *dbProfile)
 
int AB_ImExporter_GetEditProfileDialog (AB_IMEXPORTER *ie, GWEN_DB_NODE *dbProfile, const char *testFileName, GWEN_DIALOG **pDlg)
 
int AB_ImExporter_ImportFile (AB_IMEXPORTER *ie, AB_IMEXPORTER_CONTEXT *ctx, const char *fname, GWEN_DB_NODE *dbProfile)
 
int AB_ImExporter_ImportBuffer (AB_IMEXPORTER *ie, AB_IMEXPORTER_CONTEXT *ctx, GWEN_BUFFER *buf, GWEN_DB_NODE *dbProfile)
 
int AB_ImExporter_ExportToBuffer (AB_IMEXPORTER *ie, AB_IMEXPORTER_CONTEXT *ctx, GWEN_BUFFER *buf, GWEN_DB_NODE *dbProfile)
 
int AB_ImExporter_ExportToFile (AB_IMEXPORTER *ie, AB_IMEXPORTER_CONTEXT *ctx, const char *fname, GWEN_DB_NODE *dbProfile)
 
int AB_ImExporter_CheckFile (AB_IMEXPORTER *ie, const char *fname)
 
Constructor, Destructor, Copy
AB_IMEXPORTER_ACCOUNTINFOAB_ImExporterAccountInfo_new (void)
 
void AB_ImExporterAccountInfo_free (AB_IMEXPORTER_ACCOUNTINFO *iea)
 
void AB_ImExporterAccountInfo_FillFromAccount (AB_IMEXPORTER_ACCOUNTINFO *iea, const AB_ACCOUNT *a)
 
AB_IMEXPORTER_ACCOUNTINFOAB_ImExporterAccountInfo_dup (const AB_IMEXPORTER_ACCOUNTINFO *oldiea)
 
Informational Functions
const char * AB_ImExporterAccountInfo_GetBankCode (const AB_IMEXPORTER_ACCOUNTINFO *iea)
 
void AB_ImExporterAccountInfo_SetBankCode (AB_IMEXPORTER_ACCOUNTINFO *iea, const char *s)
 
const char * AB_ImExporterAccountInfo_GetBankName (const AB_IMEXPORTER_ACCOUNTINFO *iea)
 
void AB_ImExporterAccountInfo_SetBankName (AB_IMEXPORTER_ACCOUNTINFO *iea, const char *s)
 
const char * AB_ImExporterAccountInfo_GetAccountNumber (const AB_IMEXPORTER_ACCOUNTINFO *iea)
 
void AB_ImExporterAccountInfo_SetAccountNumber (AB_IMEXPORTER_ACCOUNTINFO *iea, const char *s)
 
const char * AB_ImExporterAccountInfo_GetAccountName (const AB_IMEXPORTER_ACCOUNTINFO *iea)
 
void AB_ImExporterAccountInfo_SetAccountName (AB_IMEXPORTER_ACCOUNTINFO *iea, const char *s)
 
const char * AB_ImExporterAccountInfo_GetIban (const AB_IMEXPORTER_ACCOUNTINFO *iea)
 
void AB_ImExporterAccountInfo_SetIban (AB_IMEXPORTER_ACCOUNTINFO *iea, const char *s)
 
const char * AB_ImExporterAccountInfo_GetBic (const 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_SetCurrency (AB_IMEXPORTER_ACCOUNTINFO *iea, const char *s)
 
const char * AB_ImExporterAccountInfo_GetOwner (const AB_IMEXPORTER_ACCOUNTINFO *iea)
 
void AB_ImExporterAccountInfo_SetOwner (AB_IMEXPORTER_ACCOUNTINFO *iea, const char *s)
 
AB_ACCOUNT_TYPE AB_ImExporterAccountInfo_GetType (const AB_IMEXPORTER_ACCOUNTINFO *iea)
 
void AB_ImExporterAccountInfo_SetType (AB_IMEXPORTER_ACCOUNTINFO *iea, AB_ACCOUNT_TYPE t)
 
const char * AB_ImExporterAccountInfo_GetDescription (const AB_IMEXPORTER_ACCOUNTINFO *iea)
 
void AB_ImExporterAccountInfo_SetDescription (AB_IMEXPORTER_ACCOUNTINFO *iea, const char *s)
 
uint32_t AB_ImExporterAccountInfo_GetAccountId (const AB_IMEXPORTER_ACCOUNTINFO *iea)
 
void AB_ImExporterAccountInfo_SetAccountId (AB_IMEXPORTER_ACCOUNTINFO *iea, uint32_t id)
 
Security
void AB_ImExporterAccountInfo_AddSecurity (AB_IMEXPORTER_ACCOUNTINFO *iea, AB_SECURITY *sec)
 
AB_SECURITYAB_ImExporterAccountInfo_GetFirstSecurity (AB_IMEXPORTER_ACCOUNTINFO *iea)
 
AB_SECURITYAB_ImExporterAccountInfo_GetNextSecurity (AB_IMEXPORTER_ACCOUNTINFO *iea)
 
Account Status
void AB_ImExporterAccountInfo_AddAccountStatus (AB_IMEXPORTER_ACCOUNTINFO *iea, AB_ACCOUNT_STATUS *st)
 
AB_ACCOUNT_STATUSAB_ImExporterAccountInfo_GetFirstAccountStatus (AB_IMEXPORTER_ACCOUNTINFO *iea)
 
AB_ACCOUNT_STATUSAB_ImExporterAccountInfo_GetNextAccountStatus (AB_IMEXPORTER_ACCOUNTINFO *iea)
 
Standing Orders
void AB_ImExporterAccountInfo_AddStandingOrder (AB_IMEXPORTER_ACCOUNTINFO *iea, AB_TRANSACTION *t)
 
AB_TRANSACTIONAB_ImExporterAccountInfo_GetFirstStandingOrder (AB_IMEXPORTER_ACCOUNTINFO *iea)
 
AB_TRANSACTIONAB_ImExporterAccountInfo_GetNextStandingOrder (AB_IMEXPORTER_ACCOUNTINFO *iea)
 
int AB_ImExporterAccountInfo_GetStandingOrderCount (const AB_IMEXPORTER_ACCOUNTINFO *iea)
 
Transfers
void AB_ImExporterAccountInfo_AddTransfer (AB_IMEXPORTER_ACCOUNTINFO *iea, AB_TRANSACTION *t)
 
AB_TRANSACTIONAB_ImExporterAccountInfo_GetFirstTransfer (AB_IMEXPORTER_ACCOUNTINFO *iea)
 
AB_TRANSACTIONAB_ImExporterAccountInfo_GetNextTransfer (AB_IMEXPORTER_ACCOUNTINFO *iea)
 
int AB_ImExporterAccountInfo_GetTransferCount (const AB_IMEXPORTER_ACCOUNTINFO *iea)
 
Dated Transfers
void AB_ImExporterAccountInfo_AddDatedTransfer (AB_IMEXPORTER_ACCOUNTINFO *iea, AB_TRANSACTION *t)
 
AB_TRANSACTIONAB_ImExporterAccountInfo_GetFirstDatedTransfer (AB_IMEXPORTER_ACCOUNTINFO *iea)
 
AB_TRANSACTIONAB_ImExporterAccountInfo_GetNextDatedTransfer (AB_IMEXPORTER_ACCOUNTINFO *iea)
 
int AB_ImExporterAccountInfo_GetDatedTransferCount (const AB_IMEXPORTER_ACCOUNTINFO *iea)
 
Noted Transactions
void AB_ImExporterAccountInfo_AddNotedTransaction (AB_IMEXPORTER_ACCOUNTINFO *iea, AB_TRANSACTION *t)
 
AB_TRANSACTIONAB_ImExporterAccountInfo_GetFirstNotedTransaction (AB_IMEXPORTER_ACCOUNTINFO *iea)
 
AB_TRANSACTIONAB_ImExporterAccountInfo_GetNextNotedTransaction (AB_IMEXPORTER_ACCOUNTINFO *iea)
 
int AB_ImExporterAccountInfo_GetNotedTransactionCount (const AB_IMEXPORTER_ACCOUNTINFO *iea)
 
Helper Functions

These functions are most likely used by implementations of im/exporters.

void AB_ImExporter_Utf8ToDta (const char *p, int size, GWEN_BUFFER *buf)
 
void AB_ImExporter_DtaToUtf8 (const char *p, int size, GWEN_BUFFER *buf)
 
void AB_ImExporter_Iso8859_1ToUtf8 (const char *p, int size, GWEN_BUFFER *buf)
 
AQBANKING_DEPRECATED int AH_ImExporter_DbFromIso8859_1ToUtf8 (GWEN_DB_NODE *db)
 
int AB_ImExporter_DbFromIso8859_1ToUtf8 (GWEN_DB_NODE *db)
 
GWEN_TIME * AB_ImExporter_DateFromString (const char *p, const char *tmpl, int inUtc)
 
int AB_ImExporterContext_WriteContext (const AB_IMEXPORTER_CONTEXT *ctx, const char *ctxFile)
 

Transactions

typedef const AB_TRANSACTION *() AB_TRANSACTION_CONSTLIST2_FOREACH(const AB_TRANSACTION *element, void *user_data)
 
void AB_ImExporterAccountInfo_AddTransaction (AB_IMEXPORTER_ACCOUNTINFO *iea, AB_TRANSACTION *t)
 
AB_TRANSACTIONAB_ImExporterAccountInfo_GetFirstTransaction (AB_IMEXPORTER_ACCOUNTINFO *iea)
 
AB_TRANSACTIONAB_ImExporterAccountInfo_GetNextTransaction (AB_IMEXPORTER_ACCOUNTINFO *iea)
 
const AB_TRANSACTIONAB_ImExporterAccountInfo_TransactionsForEach (AB_IMEXPORTER_ACCOUNTINFO *iea, AB_TRANSACTION_CONSTLIST2_FOREACH func, void *user_data)
 
int AB_ImExporterAccountInfo_GetTransactionCount (const AB_IMEXPORTER_ACCOUNTINFO *iea)
 
void AB_ImExporterAccountInfo_ClearTransactions (AB_IMEXPORTER_ACCOUNTINFO *iea)
 

Function Documentation

◆ AB_ImExporter_DateFromString()

GWEN_TIME* AB_ImExporter_DateFromString ( const char *  p,
const char *  tmpl,
int  inUtc 
)

◆ AB_ImExporter_DbFromIso8859_1ToUtf8()

int AB_ImExporter_DbFromIso8859_1ToUtf8 ( GWEN_DB_NODE *  db)

This function call AB_ImExporter_Iso8859_1ToUtf8 on all char values in the given db.

◆ AB_ImExporter_DtaToUtf8()

void AB_ImExporter_DtaToUtf8 ( const char *  p,
int  size,
GWEN_BUFFER *  buf 
)

Transforms a DTA string to an UTF-8 string.

◆ AB_ImExporter_Iso8859_1ToUtf8()

void AB_ImExporter_Iso8859_1ToUtf8 ( const char *  p,
int  size,
GWEN_BUFFER *  buf 
)

◆ AB_ImExporter_Utf8ToDta()

void AB_ImExporter_Utf8ToDta ( const char *  p,
int  size,
GWEN_BUFFER *  buf 
)

Transforms an UTF-8 string to a DTA string. Untranslateable characters are replaced by a space (chr 32).

◆ AB_ImExporterContext_WriteContext()

int AB_ImExporterContext_WriteContext ( const AB_IMEXPORTER_CONTEXT ctx,
const char *  ctxFile 
)

◆ AH_ImExporter_DbFromIso8859_1ToUtf8()

AQBANKING_DEPRECATED int AH_ImExporter_DbFromIso8859_1ToUtf8 ( GWEN_DB_NODE *  db)