aqbanking  5.7.8
Functions
Gwenhywfar GUI Extension

Extends the GWEN_GUI framework. More...

Functions

GWEN_GUI * AB_Gui_new (AB_BANKING *ab)
 
void AB_Gui_Extend (GWEN_GUI *gui, AB_BANKING *ab)
 
void AB_Gui_Unextend (GWEN_GUI *gui)
 

Detailed Description

Extends the GWEN_GUI framework.

This module adds the following features to GWEN_GUI:

The following example shows how to use this module correctly. We use the FOX implementation of the GWEN_GUI framework here, but the basic steps are the same for every implementation.

  1. GWEN_Init()
  2. basic setup of your application
  3. create a GUI, set it as the application's GUI (GWEN_Gui_SetGui())
  4. create the AqBanking object (AB_Banking_new())
  5. init the AqBanking object (just AB_Banking_Init(), no need for AB_Banking_Online_Init() here)
  6. call AB_Gui_Extend() to extend the GUI (regardless of the heritage if the GUI, this works with every GUI implementation, even on console)
FF_App app("AqFinance", "Martin Preuss");
FF_Gui *gui;
GWEN_Init();
app.init(argc, argv);
gui=new FF_Gui(&app, "/some/where");
GWEN_Gui_SetGui(gui->getCInterface());
ab=AB_Banking_new("MyApplication", NULL, 0);
AB_Gui_Extend(gui->getCInterface(), ab);

Function Documentation

◆ AB_Gui_Extend()

void AB_Gui_Extend ( GWEN_GUI *  gui,
AB_BANKING ab 
)

This function can be used to add certificate handling using AqBanking's shared certificate data to any GWEN_GUI object. It sets the callback for certificate checking. Use this function if you have your own GWEN_GUI implementation but still want to use AqBanking's certificate handling. AB_Banking_Init() must be called before the certificate check callback of this GWEN_GUI object is called.

◆ AB_Gui_new()

GWEN_GUI* AB_Gui_new ( AB_BANKING ab)

This function creates a GWEN_GUI object which uses AqBanking's shared certificate data for certificate checking. AB_Banking_Init() must be called before the certificate check callback of this GWEN_GUI object is called.

◆ AB_Gui_Unextend()

void AB_Gui_Unextend ( GWEN_GUI *  gui)

This function unlinks the given GWEN_GUI object from AqBanking. It resets the callback for certificate checking to the value it had before AB_Gui_Extend was called.