GTK2 Frontend (G2Banking)
[Frontends]


Modules

 Views
 Widgets

Character Set

AqBanking internally uses UTF8 in all functions. Not all systems use this for user interaction (e.g. not all desktops show UTF-8 data, some systems might still use ISO-8859-1 or 15.

Therefore this frontend transforms interactive data (i.e. data that is output to the desktop or input from it) between UTF-8 and a given character set.

GBANKING_API const char * GBanking_GetCharSet (const AB_BANKING *ab)
GBANKING_API void GBanking_SetCharSet (AB_BANKING *ab, const char *s)

Helper Functions

GBANKING_API void GBanking_GetRawText (AB_BANKING *ab, const char *text, GWEN_BUFFER *tbuf)
GBANKING_API void GBanking_GetHtmlText (AB_BANKING *ab, const char *text, GWEN_BUFFER *tbuf)
GBANKING_API void GBanking_GetUtf8Text (AB_BANKING *ab, const char *text, int len, GWEN_BUFFER *tbuf)

Update Tracker Functions

The functions in this group just handle counters. E.g. if you call GBanking_AccountsUpdated then the internal account update counter is incremented. Functions which want to check whether accounts have been updated since the last time they checked just retrieve the account update counter via GBanking_GetLastAccountUpdate and compare it against their own counter.

GBANKING_API void GBanking_AccountsUpdated (AB_BANKING *ab)
GBANKING_API void GBanking_QueueUpdated (AB_BANKING *ab)
GBANKING_API GWEN_TYPE_UINT32 GBanking_GetLastAccountUpdate (const AB_BANKING *ab)
GBANKING_API GWEN_TYPE_UINT32 GBanking_GetLastQueueUpdate (const AB_BANKING *ab)

Importing Contexts

This frontend uses a callback function to let the application import data. This is called from the job view after executing the job queue.

GBANKING_API int GBanking_ImportContext (AB_BANKING *ab, AB_IMEXPORTER_CONTEXT *ctx)
GBANKING_API void GBanking_SetImportContextFn (AB_BANKING *ab, GBANKING_IMPORTCONTEXT_FN cb)

Typedefs

typedef int(* GBANKING_IMPORTCONTEXT_FN )(AB_BANKING *ab, AB_IMEXPORTER_CONTEXT *ctx)

Functions

GBANKING_API AB_BANKINGGBanking_new (const char *appName, const char *fname)


Typedef Documentation

typedef int(* GBANKING_IMPORTCONTEXT_FN)(AB_BANKING *ab, AB_IMEXPORTER_CONTEXT *ctx)
 

Definition at line 73 of file gbanking.h.


Function Documentation

GBANKING_API void GBanking_AccountsUpdated AB_BANKING ab  ) 
 

GBANKING_API const char* GBanking_GetCharSet const AB_BANKING ab  ) 
 

Returns the currently selected character set (or NULL if none is selected).

GBANKING_API void GBanking_GetHtmlText AB_BANKING ab,
const char *  text,
GWEN_BUFFER *  tbuf
 

See GBanking_GetRawText. This function extracts the HTML text from the argument and stores it in the given buffer.

GBANKING_API GWEN_TYPE_UINT32 GBanking_GetLastAccountUpdate const AB_BANKING ab  ) 
 

GBANKING_API GWEN_TYPE_UINT32 GBanking_GetLastQueueUpdate const AB_BANKING ab  ) 
 

GBANKING_API void GBanking_GetRawText AB_BANKING ab,
const char *  text,
GWEN_BUFFER *  tbuf
 

AqBanking allows HTML text for some arguments of interactive functions (e.g. AB_Banking_MessageBox). If HTML is provided, then a text-only version must be supplied so that frontends incapable of parsing HTML can still output something usefull. With GTK2 we use Pango which only supports a subset of HTML, so we use the raw text version. This function extracts the raw text from the argument and stores it in the given buffer.

GBANKING_API void GBanking_GetUtf8Text AB_BANKING ab,
const char *  text,
int  len,
GWEN_BUFFER *  tbuf
 

This function extracts the raw text from the argument as the function GBanking_GetRawText would do. In addition this function converts the raw text from UTF-8 to the character set selected via GBanking_SetCharSet.

GBANKING_API int GBanking_ImportContext AB_BANKING ab,
AB_IMEXPORTER_CONTEXT ctx
 

GBANKING_API AB_BANKING* GBanking_new const char *  appName,
const char *  fname
 

GBANKING_API void GBanking_QueueUpdated AB_BANKING ab  ) 
 

GBANKING_API void GBanking_SetCharSet AB_BANKING ab,
const char *  s
 

Set the character set to transform from/to.

GBANKING_API void GBanking_SetImportContextFn AB_BANKING ab,
GBANKING_IMPORTCONTEXT_FN  cb
 

Set the import callback function.


Generated on Wed Jun 28 15:17:45 2006 for aqbanking by  doxygen 1.4.6