typedef AB_IMEXPORTER_ACCOUNTINFO*( AB_IMEXPORTER_ACCOUNTINFO_LIST2_FOREACH)(AB_IMEXPORTER_ACCOUNTINFO *element, void *user_data) |
Callback function type for AB_ImExporterContext_AccountInfoForEach()
(As soon as a ACCOUNTINFO_LIST2 is declared in this header, this declaration can be removed.)
Definition at line 226 of file imexporter.h.
AB_IMEXPORTER_ACCOUNTINFO* AB_ImExporterContext_AccountInfoForEach | ( | AB_IMEXPORTER_CONTEXT * | iec, | |
AB_IMEXPORTER_ACCOUNTINFO_LIST2_FOREACH | func, | |||
void * | user_data | |||
) |
Traverses the list of account infos in this context, calling the callback function 'func' on each list element. Traversal will stop when 'func' returns a non-NULL value, and the routine will return with that value. Otherwise the routine will return NULL.
Note: Every list element is still owned by the IMEXPORTER_CONTEXT object, so it must neither be free'd nor stored anywhere outside the lifecyle of this AB_IMEXPORTER_CONTEXT.
Available since aqbanking-1.9.7.
iec | The importer context. | |
func | The function to be called with each list element. | |
user_data | A pointer passed on to the function 'func'. |
void AB_ImExporterContext_AddAccountInfo | ( | AB_IMEXPORTER_CONTEXT * | iec, | |
AB_IMEXPORTER_ACCOUNTINFO * | iea | |||
) |
Takes over ownership of the given account info.
void AB_ImExporterContext_AddContext | ( | AB_IMEXPORTER_CONTEXT * | iec, | |
AB_IMEXPORTER_CONTEXT * | toAdd | |||
) |
Adds the content of the second context to the first one. Frees the second context.
void AB_ImExporterContext_AddDatedTransfer | ( | AB_IMEXPORTER_CONTEXT * | iec, | |
AB_TRANSACTION * | t | |||
) |
void AB_ImExporterContext_AddStandingOrder | ( | AB_IMEXPORTER_CONTEXT * | iec, | |
AB_TRANSACTION * | t | |||
) |
void AB_ImExporterContext_AddTransaction | ( | AB_IMEXPORTER_CONTEXT * | iec, | |
AB_TRANSACTION * | t | |||
) |
This is just a convenience function. It takes the bank code and account number from the account, and then calls AB_ImExporterContext_GetAccountInfo and AB_ImExporterAccountInfo_AddTransaction. If you want to add many transactions which are sorted by account it is much faster to avoid this function and to select the appropriate account info object once before importing all transactions for this particular account. This would save you the additional lookup before every transaction.
void AB_ImExporterContext_AddTransfer | ( | AB_IMEXPORTER_CONTEXT * | iec, | |
AB_TRANSACTION * | t | |||
) |
This is just a convenience function. It takes the bank code and account number from the account, and then calls AB_ImExporterContext_GetAccountInfo and AB_ImExporterAccountInfo_AddTransfer. If you want to add many transfers which are sorted by account it is much faster to avoid this function and to select the appropriate account info object once before importing all transactions for this particular account. This would save you the additional lookup before every transaction.
AB_IMEXPORTER_ACCOUNTINFO* AB_ImExporterContext_FindAccountInfo | ( | AB_IMEXPORTER_CONTEXT * | iec, | |
const char * | bankCode, | |||
const char * | accountNumber | |||
) |
Looks for account info for the given account. If it is not found 0 is returned. The context remains the owner of the returned object.
void AB_ImExporterContext_free | ( | AB_IMEXPORTER_CONTEXT * | iec | ) |
AB_IMEXPORTER_CONTEXT* AB_ImExporterContext_fromDb | ( | GWEN_DB_NODE * | db | ) |
Restores a complete import/export context from a GWEN_DB.
AB_IMEXPORTER_ACCOUNTINFO* AB_ImExporterContext_GetAccountInfo | ( | AB_IMEXPORTER_CONTEXT * | iec, | |
const char * | bankCode, | |||
const char * | accountNumber | |||
) |
Looks for account info for the given account. If there is none it will be created and added to the context. The context remains the owner of the returned object.
AB_IMEXPORTER_ACCOUNTINFO* AB_ImExporterContext_GetFirstAccountInfo | ( | AB_IMEXPORTER_CONTEXT * | iec | ) |
Returns the first imported account (if any). The context remains the owner of the object returned.
AB_IMEXPORTER_ACCOUNTINFO* AB_ImExporterContext_GetNextAccountInfo | ( | AB_IMEXPORTER_CONTEXT * | iec | ) |
Returns the next account data has been imported for. The context remains the owner of the object returned.
AB_IMEXPORTER_CONTEXT* AB_ImExporterContext_new | ( | ) |
int AB_ImExporterContext_ReadDb | ( | AB_IMEXPORTER_CONTEXT * | iec, | |
GWEN_DB_NODE * | db | |||
) |
int AB_ImExporterContext_toDb | ( | const AB_IMEXPORTER_CONTEXT * | iec, | |
GWEN_DB_NODE * | db | |||
) |
Stores a complete import/export context to a GWEN_DB.