aqbanking  5.7.8
job.h
Go to the documentation of this file.
1 /***************************************************************************
2  $RCSfile$
3  -------------------
4  cvs : $Id$
5  begin : Mon Mar 01 2004
6  copyright : (C) 2004 by Martin Preuss
7  email : martin@libchipcard.de
8 
9  ***************************************************************************
10  * This file is part of the project "AqBanking". *
11  * Please see toplevel file COPYING of that project for license details. *
12  ***************************************************************************/
13 
14 
15 #ifndef AQBANKING_JOB_H
16 #define AQBANKING_JOB_H
17 
18 #include <gwenhywfar/list2.h>
19 #include <gwenhywfar/gwentime.h>
20 #include <gwenhywfar/logger.h>
21 #include <aqbanking/error.h> /* for AQBANKING_API */
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
105 
106 typedef struct AB_JOB AB_JOB;
107 
109 
110 
113 
118 
120 typedef enum {
149 } AB_JOB_STATUS;
150 
151 
153 typedef enum {
182  /* internal transfer between two accounts at the same bank */
190 
197 
200 
203 
204 } AB_JOB_TYPE;
205 
206 
207 
208 #ifdef __cplusplus
209 }
210 #endif
211 
212 
213 #include <aqbanking/account.h>
214 #include <aqbanking/transaction.h>
215 
216 
217 #ifdef __cplusplus
218 extern "C" {
219 #endif
220 
229 void AB_Job_free(AB_JOB *j);
231 void AB_Job_Attach(AB_JOB *j);
239 
246 uint32_t AB_Job_GetJobId(const AB_JOB *j);
247 
252 const char *AB_Job_GetCreatedBy(const AB_JOB *j);
253 
254 
262 GWEN_DB_NODE *AB_Job_GetAppData(AB_JOB *j);
263 
264 
273 
279 
280 
283 
288 const GWEN_TIME *AB_Job_GetLastStatusChange(const AB_JOB *j);
289 
295 
301 
308 const char *AB_Job_GetResultText(const AB_JOB *j);
309 
311 const char *AB_Job_GetUsedTan(const AB_JOB *j);
320 
323 
326 
329 
332 
340 
345 const char *AB_Job_Status2Char(AB_JOB_STATUS i);
346 
351 AB_JOB_STATUS AB_Job_Char2Status(const char *s);
352 
357 const char *AB_Job_Type2Char(AB_JOB_TYPE i);
358 
363 AB_JOB_TYPE AB_Job_Char2Type(const char *s);
364 
370 const char *AB_Job_Type2LocalChar(AB_JOB_TYPE i);
371 
373 GWEN_TIME *AB_Job_DateFromDb(GWEN_DB_NODE *db, const char *name);
374 
376 void AB_Job_DateOnlyToDb(const GWEN_TIME *ti,
377  GWEN_DB_NODE *db,
378  const char *name);
379 
381 GWEN_TIME *AB_Job_DateOnlyFromDb(GWEN_DB_NODE *db, const char *name);
382 
384 void AB_Job_DateToDb(const GWEN_TIME *ti, GWEN_DB_NODE *db, const char *name);
385 
386 
400 void AB_Job_Log(AB_JOB *j,
401  GWEN_LOGGER_LEVEL ll,
402  const char *who,
403  const char *txt);
404 
412 GWEN_STRINGLIST *AB_Job_GetLogs(const AB_JOB *j);
413 
417  /* defgroup */
418 
419 
420 #ifdef __cplusplus
421 }
422 #endif
423 
424 
425 #endif /* AQBANKING_JOB_H */
426 
427 
428 
429 
void AB_Job_free(AB_JOB *j)
struct AB_TRANSACTION_LIMITS AB_TRANSACTION_LIMITS
uint32_t AB_Job_GetJobId(const AB_JOB *j)
void AB_Job_SetFieldLimits(AB_JOB *j, AB_TRANSACTION_LIMITS *limits)
AB_JOB_STATUS AB_Job_GetStatus(const AB_JOB *j)
GWEN_TIME * AB_Job_DateFromDb(GWEN_DB_NODE *db, const char *name)
const GWEN_TIME * AB_Job_GetLastStatusChange(const AB_JOB *j)
const char * AB_Job_Status2Char(AB_JOB_STATUS i)
const char * AB_Job_GetUsedTan(const AB_JOB *j)
GWEN_STRINGLIST * AB_Job_GetLogs(const AB_JOB *j)
AB_JOB_TYPE
Definition: job.h:153
#define AQBANKING_API
Definition: error.h:55
AB_JOB_TYPE AB_Job_GetType(const AB_JOB *j)
struct AB_JOB_LIST2 AB_JOB_LIST2
Definition: listdoc.h:3187
const AB_TRANSACTION_LIMITS * AB_Job_GetFieldLimits(AB_JOB *j)
struct AB_JOB AB_JOB
Definition: job.h:106
const char * AB_Job_GetCreatedBy(const AB_JOB *j)
const char * AB_Job_Type2LocalChar(AB_JOB_TYPE i)
const char * AB_Job_Type2Char(AB_JOB_TYPE i)
int AB_Job_SetTransaction(AB_JOB *j, const AB_TRANSACTION *t)
struct AB_TRANSACTION AB_TRANSACTION
Definition: transaction.h:655
void AB_Job_List2_FreeAll(AB_JOB_LIST2 *jl)
GWEN_LIST2_FUNCTION_LIB_DEFS(AB_ACCOUNT_STATUS, AB_AccountStatus,) AB_ACCOUNT_STATUS *AB_AccountStatus_new()
void AB_Job_Attach(AB_JOB *j)
void AB_Job_SetStatus(AB_JOB *j, AB_JOB_STATUS st)
void AB_Job_DateOnlyToDb(const GWEN_TIME *ti, GWEN_DB_NODE *db, const char *name)
AB_ACCOUNT * AB_Job_GetAccount(const AB_JOB *j)
GWEN_DB_NODE * AB_Job_GetAppData(AB_JOB *j)
const char * AB_Job_GetResultText(const AB_JOB *j)
int AB_Job_CheckAvailability(AB_JOB *j)
void AB_Job_Log(AB_JOB *j, GWEN_LOGGER_LEVEL ll, const char *who, const char *txt)
AB_TRANSACTION * AB_Job_GetTransaction(const AB_JOB *j)
AB_JOB_TYPE AB_Job_Char2Type(const char *s)
void AB_Job_DateToDb(const GWEN_TIME *ti, GWEN_DB_NODE *db, const char *name)
void AB_Job_List2_ClearAll(AB_JOB_LIST2 *jl)
AB_JOB_STATUS
Definition: job.h:120
GWEN_TIME * AB_Job_DateOnlyFromDb(GWEN_DB_NODE *db, const char *name)
AB_JOB_STATUS AB_Job_Char2Status(const char *s)
struct AB_ACCOUNT AB_ACCOUNT