Functions To Be Used by Backends | |
GWEN_TYPE_UINT32 | AB_Job_GetIdForProvider (const AB_JOB *j) |
void | AB_Job_SetIdForProvider (AB_JOB *j, GWEN_TYPE_UINT32 i) |
GWEN_DB_NODE * | AB_Job_GetProviderData (AB_JOB *j, AB_PROVIDER *pro) |
void | AB_Job_SetResultText (AB_JOB *j, const char *s) |
void | AB_Job_SetStatus (AB_JOB *j, AB_JOB_STATUS st) |
void | AB_Job_SetUsedTan (AB_JOB *j, const char *s) |
GWEN_TIME * | AB_Job_DateFromDb (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_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_LogRaw (AB_JOB *j, const char *txt) |
GWEN_TIME* AB_Job_DateFromDb | ( | GWEN_DB_NODE * | db, | |
const char * | name | |||
) |
Reads a GWEN_TIME object from a DB variable. The expected format of the variable is "YYYYMMDD hh:mm:ss" (where YYYY is the year in 4-digit-notion, MM is the number of the month beginning with 1=January, DD is the day of the month beginning with 1, hh is the hour of the day, mm are the minutes of the hour and ss are the seconds of the minute.
GWEN_TIME* AB_Job_DateOnlyFromDb | ( | GWEN_DB_NODE * | db, | |
const char * | name | |||
) |
Reads a GWEN_TIME object from a DB variable ignoring the time part. The expected format of the variable is "YYYYMMDD".
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 | |||
) |
GWEN_TYPE_UINT32 AB_Job_GetIdForProvider | ( | const AB_JOB * | j | ) |
This id can be used by a AB_PROVIDER to map AB_Jobs to whatever the provider uses. This id is not used by AB_Banking itself.
GWEN_DB_NODE* AB_Job_GetProviderData | ( | AB_JOB * | j, | |
AB_PROVIDER * | pro | |||
) |
Store backend specific data with a job. This data is not specific to an application, it will rather be used with every application (since it doesn't depend on the application but on the backend).
j | pointer to the AB_JOB object | |
pro | pointer to the backend for which the data is to be returned |
void AB_Job_LogRaw | ( | AB_JOB * | j, | |
const char * | txt | |||
) |
This function should only be used when copying logs from a backend-private job object (e.g. AqHBCI internally uses its own job types) to an AqBanking job.
j | job to operate on | |
txt | the text to log (it is expected to have the same format as logs created via AB_Job_Log). |
void AB_Job_SetIdForProvider | ( | AB_JOB * | j, | |
GWEN_TYPE_UINT32 | i | |||
) |
void AB_Job_SetResultText | ( | AB_JOB * | j, | |
const char * | s | |||
) |
void AB_Job_SetStatus | ( | AB_JOB * | j, | |
AB_JOB_STATUS | st | |||
) |
void AB_Job_SetUsedTan | ( | AB_JOB * | j, | |
const char * | s | |||
) |