aqbanking
5.7.8
|
Modules | |
Get Balance | |
Get Transaction Statements | |
Transfer Jobs | |
Dated Transfers | |
Standing Orders | |
Typedefs | |
typedef struct AB_JOB | AB_JOB |
Functions | |
void | AB_Job_List2_FreeAll (AB_JOB_LIST2 *jl) |
void | AB_Job_List2_ClearAll (AB_JOB_LIST2 *jl) |
Constructing, Destroying, Attaching | |
Actually this group does not contain a constructor since you never create an AB_JOB directly. You rather create a derived job (e.g. by using AB_JobGetBalance_new). | |
void | AB_Job_free (AB_JOB *j) |
void | AB_Job_Attach (AB_JOB *j) |
Informational Functions | |
uint32_t | AB_Job_GetJobId (const AB_JOB *j) |
const char * | AB_Job_GetCreatedBy (const AB_JOB *j) |
GWEN_DB_NODE * | AB_Job_GetAppData (AB_JOB *j) |
int | AB_Job_CheckAvailability (AB_JOB *j) |
AB_JOB_STATUS | AB_Job_GetStatus (const AB_JOB *j) |
void | AB_Job_SetStatus (AB_JOB *j, AB_JOB_STATUS st) |
const GWEN_TIME * | AB_Job_GetLastStatusChange (const AB_JOB *j) |
AB_JOB_TYPE | AB_Job_GetType (const AB_JOB *j) |
AB_ACCOUNT * | AB_Job_GetAccount (const AB_JOB *j) |
const char * | AB_Job_GetResultText (const AB_JOB *j) |
const char * | AB_Job_GetUsedTan (const AB_JOB *j) |
Transaction Functions | |
int | AB_Job_SetTransaction (AB_JOB *j, const AB_TRANSACTION *t) |
AB_TRANSACTION * | AB_Job_GetTransaction (const AB_JOB *j) |
const AB_TRANSACTION_LIMITS * | AB_Job_GetFieldLimits (AB_JOB *j) |
void | AB_Job_SetFieldLimits (AB_JOB *j, AB_TRANSACTION_LIMITS *limits) |
Helper Functions | |
const char * | AB_Job_Status2Char (AB_JOB_STATUS i) |
AB_JOB_STATUS | AB_Job_Char2Status (const char *s) |
const char * | AB_Job_Type2Char (AB_JOB_TYPE i) |
AB_JOB_TYPE | AB_Job_Char2Type (const char *s) |
const char * | AB_Job_Type2LocalChar (AB_JOB_TYPE i) |
GWEN_TIME * | AB_Job_DateFromDb (GWEN_DB_NODE *db, const char *name) |
void | AB_Job_DateOnlyToDb (const GWEN_TIME *ti, GWEN_DB_NODE *db, const char *name) |
GWEN_TIME * | AB_Job_DateOnlyFromDb (GWEN_DB_NODE *db, const char *name) |
void | AB_Job_DateToDb (const GWEN_TIME *ti, GWEN_DB_NODE *db, const char *name) |
Logging Functions | |
AqBanking logs every activity on a job. These logs can be usefull when something went wrong. If a job performs without problems most of the logs are removed from the job because otherwise the jobs would fill up your disk space. | |
void | AB_Job_Log (AB_JOB *j, GWEN_LOGGER_LEVEL ll, const char *who, const char *txt) |
GWEN_STRINGLIST * | AB_Job_GetLogs (const AB_JOB *j) |
This group represents online banking tasks such as retrieving the balance, downloading transaction statements, issue transfers etc.
enum AB_JOB_STATUS |
The status of a job.
enum AB_JOB_TYPE |
The type of the job, which also corresponds to its subclass of AB_JOB.
void AB_Job_Attach | ( | AB_JOB * | j | ) |
AB_JOB_STATUS AB_Job_Char2Status | ( | const char * | s | ) |
Transforms the given string into a job status code.
AB_JOB_TYPE AB_Job_Char2Type | ( | const char * | s | ) |
Transforms the given string into a job type.
int AB_Job_CheckAvailability | ( | AB_JOB * | j | ) |
Not all jobs have to be supported by every backend. The application needs to know whether a job actually is supported, and this is done by calling this function. It returns the error code (see Error Codes) returned by the backend when asked to check for this job.
GWEN_TIME* AB_Job_DateFromDb | ( | GWEN_DB_NODE * | db, |
const char * | name | ||
) |
GWEN_TIME* AB_Job_DateOnlyFromDb | ( | GWEN_DB_NODE * | db, |
const char * | name | ||
) |
void AB_Job_DateOnlyToDb | ( | const GWEN_TIME * | ti, |
GWEN_DB_NODE * | db, | ||
const char * | name | ||
) |
void AB_Job_DateToDb | ( | const GWEN_TIME * | ti, |
GWEN_DB_NODE * | db, | ||
const char * | name | ||
) |
void AB_Job_free | ( | AB_JOB * | j | ) |
AB_ACCOUNT* AB_Job_GetAccount | ( | const AB_JOB * | j | ) |
Every job is linked to a single account to operate on.
GWEN_DB_NODE* AB_Job_GetAppData | ( | AB_JOB * | j | ) |
Returns a GWEN_DB_NODE which can be used to store/retrieve data for the currently running application. The group returned MUST NOT be freed ! AqBanking is able to separate and store the data for every application.
const char* AB_Job_GetCreatedBy | ( | const AB_JOB * | j | ) |
Returns the name of the application which created this job.
const AB_TRANSACTION_LIMITS* AB_Job_GetFieldLimits | ( | AB_JOB * | j | ) |
uint32_t AB_Job_GetJobId | ( | const AB_JOB * | j | ) |
Every created job gets an unique id. This allows any application to identify a specific job. However, unique ids are assigned when they get enqueued (i.e. by calling AB_Banking_EnqueueJob).
const GWEN_TIME* AB_Job_GetLastStatusChange | ( | const AB_JOB * | j | ) |
Returns the time when the status of this job changed last.
GWEN_STRINGLIST* AB_Job_GetLogs | ( | const AB_JOB * | j | ) |
Returns a string list containing the logs of the job. Each entry of that string list contains the date/time, loglevel, source and text. The caller becomes the owner of the returned object (if any), please call GWEN_StringList_free on it to avoid memory leaks.
const char* AB_Job_GetResultText | ( | const AB_JOB * | j | ) |
Returns a text result provided by the backend upon execution of this job. This should only be presented to the user when there is no other way to determine the result (e.g. no log etc).
AB_JOB_STATUS AB_Job_GetStatus | ( | const AB_JOB * | j | ) |
Returns the status of this job.
AB_TRANSACTION* AB_Job_GetTransaction | ( | const AB_JOB * | j | ) |
AB_JOB_TYPE AB_Job_GetType | ( | const AB_JOB * | j | ) |
Returns the job type.
const char* AB_Job_GetUsedTan | ( | const AB_JOB * | j | ) |
void AB_Job_List2_ClearAll | ( | AB_JOB_LIST2 * | jl | ) |
This function frees all jobs contained in the given list but does not destroy the list itself
void AB_Job_List2_FreeAll | ( | AB_JOB_LIST2 * | jl | ) |
This function frees all jobs contained in the given list and the list itself.
void AB_Job_Log | ( | AB_JOB * | j, |
GWEN_LOGGER_LEVEL | ll, | ||
const char * | who, | ||
const char * | txt | ||
) |
void AB_Job_SetFieldLimits | ( | AB_JOB * | j, |
AB_TRANSACTION_LIMITS * | limits | ||
) |
void AB_Job_SetStatus | ( | AB_JOB * | j, |
AB_JOB_STATUS | st | ||
) |
int AB_Job_SetTransaction | ( | AB_JOB * | j, |
const AB_TRANSACTION * | t | ||
) |
const char* AB_Job_Status2Char | ( | AB_JOB_STATUS | i | ) |
Transforms the given status code into a string.
const char* AB_Job_Type2Char | ( | AB_JOB_TYPE | i | ) |
Transforms the given job type into a string.
const char* AB_Job_Type2LocalChar | ( | AB_JOB_TYPE | i | ) |
Transforms the given job type into a localized string which can be presented to the user.