A C++ binding for the C module AB_BANKING. More...
#include <banking.h>
Public Member Functions | |
AB_Banking (const char *appname, const char *fname) | |
virtual | ~AB_Banking () |
AB_BANKING * | getCInterface () |
virtual int | init () |
virtual int | fini () |
int | onlineInit (uint32_t guiid) |
int | onlineFini (uint32_t guiid) |
AB_PROVIDER * | getProvider (const char *name) |
const char * | getAppName () |
std::list< AB_ACCOUNT * > | getAccounts () |
AB_ACCOUNT * | getAccount (uint32_t uniqueId) |
std::list< AB_USER * > | getUsers () |
int | getUserDataDir (GWEN_BUFFER *buf) const |
int | getAppUserDataDir (GWEN_BUFFER *buf) const |
int | loadAppConfig (GWEN_DB_NODE **pDb, uint32_t guiid) |
int | saveAppConfig (GWEN_DB_NODE *db, uint32_t guiid) |
int | lockAppConfig (uint32_t guiid) |
int | unlockAppConfig (uint32_t guiid) |
int | loadAppSubConfig (const char *subGroup, GWEN_DB_NODE **pDb, uint32_t guiid) |
int | saveAppSubConfig (const char *subGroup, GWEN_DB_NODE *dbSrc, uint32_t guiid) |
int | loadSharedConfig (const char *name, GWEN_DB_NODE **pDb, uint32_t guiid) |
int | saveSharedConfig (const char *name, GWEN_DB_NODE *db, uint32_t guiid) |
int | lockSharedConfig (const char *name, uint32_t guiid) |
int | unlockSharedConfig (const char *name, uint32_t guiid) |
int | loadSharedSubConfig (const char *name, const char *subGroup, GWEN_DB_NODE **pDb, uint32_t guiid) |
int | saveSharedSubConfig (const char *name, const char *subGroup, GWEN_DB_NODE *dbSrc, uint32_t guiid) |
int | beginExclUseAccount (AB_ACCOUNT *a, uint32_t guiid) |
int | endExclUseAccount (AB_ACCOUNT *a, int abandon, uint32_t guiid) |
int | beginExclUseUser (AB_USER *u, uint32_t guiid) |
int | endExclUseUser (AB_USER *u, int abandon, uint32_t guiid) |
virtual bool | importContext (AB_IMEXPORTER_CONTEXT *ctx, uint32_t flags) |
AB_Banking (const char *appname, const char *fname) | |
virtual | ~AB_Banking () |
AB_BANKING * | getCInterface () |
virtual int | init () |
virtual int | fini () |
int | onlineInit (uint32_t guiid) |
int | onlineFini (uint32_t guiid) |
AB_PROVIDER * | getProvider (const char *name) |
const char * | getAppName () |
std::list< AB_ACCOUNT * > | getAccounts () |
AB_ACCOUNT * | getAccount (uint32_t uniqueId) |
std::list< AB_USER * > | getUsers () |
int | getUserDataDir (GWEN_BUFFER *buf) const |
int | getAppUserDataDir (GWEN_BUFFER *buf) const |
int | loadAppConfig (GWEN_DB_NODE **pDb, uint32_t guiid) |
int | saveAppConfig (GWEN_DB_NODE *db, uint32_t guiid) |
int | lockAppConfig (uint32_t guiid) |
int | unlockAppConfig (uint32_t guiid) |
int | loadAppSubConfig (const char *subGroup, GWEN_DB_NODE **pDb, uint32_t guiid) |
int | saveAppSubConfig (const char *subGroup, GWEN_DB_NODE *dbSrc, uint32_t guiid) |
int | loadSharedConfig (const char *name, GWEN_DB_NODE **pDb, uint32_t guiid) |
int | saveSharedConfig (const char *name, GWEN_DB_NODE *db, uint32_t guiid) |
int | lockSharedConfig (const char *name, uint32_t guiid) |
int | unlockSharedConfig (const char *name, uint32_t guiid) |
int | loadSharedSubConfig (const char *name, const char *subGroup, GWEN_DB_NODE **pDb, uint32_t guiid) |
int | saveSharedSubConfig (const char *name, const char *subGroup, GWEN_DB_NODE *dbSrc, uint32_t guiid) |
int | beginExclUseAccount (AB_ACCOUNT *a, uint32_t guiid) |
int | endExclUseAccount (AB_ACCOUNT *a, int abandon, uint32_t guiid) |
int | beginExclUseUser (AB_USER *u, uint32_t guiid) |
int | endExclUseUser (AB_USER *u, int abandon, uint32_t guiid) |
virtual bool | importContext (AB_IMEXPORTER_CONTEXT *ctx, uint32_t flags) |
Plugin Handling | |
std::list < GWEN_PLUGIN_DESCRIPTION * > | getProviderDescrs () |
std::list < GWEN_PLUGIN_DESCRIPTION * > | getWizardDescrs () |
void | clearPluginDescrs (std::list< GWEN_PLUGIN_DESCRIPTION * > &l) |
std::list< std::string > | getActiveProviders () |
std::string | findWizard (const char *frontends) |
std::list < GWEN_PLUGIN_DESCRIPTION * > | getProviderDescrs () |
std::list < GWEN_PLUGIN_DESCRIPTION * > | getWizardDescrs () |
void | clearPluginDescrs (std::list< GWEN_PLUGIN_DESCRIPTION * > &l) |
std::list< std::string > | getActiveProviders () |
std::string | findWizard (const char *frontends) |
Enqueueing, Dequeueing and Executing Jobs | |
Enqueued jobs are preserved across shutdowns. As soon as a job has been sent to the appropriate backend it will be removed from the queue. Only those jobs are saved/reloaded which have been enqueued but never presented to the backend. This means after calling AB_Banking_ExecuteQueue only those jobs are still in the queue which have not been processed (e.g. because they belonged to a second backend but the user aborted while the jobs for a first backend were in process). | |
virtual int | executeJobs (AB_JOB_LIST2 *jl, AB_IMEXPORTER_CONTEXT *ctx, uint32_t guiid) |
virtual int | executeJobs (AB_JOB_LIST2 *jl, AB_IMEXPORTER_CONTEXT *ctx, uint32_t guiid) |
A C++ binding for the C module AB_BANKING.
This class simply is a C++ binding for the C module AB_BANKING. It redirects C callbacks used by AB_BANKING to virtual functions in this class. It als transforms some return values inconveniant for C++ into STL objects (such as "list<T>").
Definition at line 43 of file q4banking/banking.h.
AB_Banking::AB_Banking | ( | const char * | appname, | |
const char * | fname | |||
) |
virtual AB_Banking::~AB_Banking | ( | ) | [virtual] |
AB_Banking::AB_Banking | ( | const char * | appname, | |
const char * | fname | |||
) |
virtual AB_Banking::~AB_Banking | ( | ) | [virtual] |
int AB_Banking::beginExclUseAccount | ( | AB_ACCOUNT * | a, | |
uint32_t | guiid | |||
) |
int AB_Banking::beginExclUseAccount | ( | AB_ACCOUNT * | a, | |
uint32_t | guiid | |||
) |
int AB_Banking::beginExclUseUser | ( | AB_USER * | u, | |
uint32_t | guiid | |||
) |
int AB_Banking::beginExclUseUser | ( | AB_USER * | u, | |
uint32_t | guiid | |||
) |
void AB_Banking::clearPluginDescrs | ( | std::list< GWEN_PLUGIN_DESCRIPTION * > & | l | ) |
Frees all plugin descriptions whose pointers are stored inside the given list. Please note that this methode renders the list useless, so it should be the last method called on that list before destroying it.
void AB_Banking::clearPluginDescrs | ( | std::list< GWEN_PLUGIN_DESCRIPTION * > & | l | ) |
Frees all plugin descriptions whose pointers are stored inside the given list. Please note that this methode renders the list useless, so it should be the last method called on that list before destroying it.
int AB_Banking::endExclUseAccount | ( | AB_ACCOUNT * | a, | |
int | abandon, | |||
uint32_t | guiid | |||
) |
int AB_Banking::endExclUseAccount | ( | AB_ACCOUNT * | a, | |
int | abandon, | |||
uint32_t | guiid | |||
) |
int AB_Banking::endExclUseUser | ( | AB_USER * | u, | |
int | abandon, | |||
uint32_t | guiid | |||
) |
int AB_Banking::endExclUseUser | ( | AB_USER * | u, | |
int | abandon, | |||
uint32_t | guiid | |||
) |
virtual int AB_Banking::executeJobs | ( | AB_JOB_LIST2 * | jl, | |
AB_IMEXPORTER_CONTEXT * | ctx, | |||
uint32_t | guiid | |||
) | [virtual] |
This function sends all jobs in the list to their corresponding backends and allows that backend to process it.
virtual int AB_Banking::executeJobs | ( | AB_JOB_LIST2 * | jl, | |
AB_IMEXPORTER_CONTEXT * | ctx, | |||
uint32_t | guiid | |||
) | [virtual] |
This function sends all jobs in the list to their corresponding backends and allows that backend to process it.
std::string AB_Banking::findWizard | ( | const char * | frontends | ) |
std::string AB_Banking::findWizard | ( | const char * | frontends | ) |
virtual int AB_Banking::fini | ( | ) | [virtual] |
See AB_Banking_Fini
virtual int AB_Banking::fini | ( | ) | [virtual] |
See AB_Banking_Fini
AB_ACCOUNT* AB_Banking::getAccount | ( | uint32_t | uniqueId | ) |
This function does an account lookup based on the given unique id. This id is assigned by AqBanking when an account is created. The pointer returned is still owned by AqBanking, so you MUST NOT free it.
AB_ACCOUNT* AB_Banking::getAccount | ( | uint32_t | uniqueId | ) |
This function does an account lookup based on the given unique id. This id is assigned by AqBanking when an account is created. The pointer returned is still owned by AqBanking, so you MUST NOT free it.
std::list<AB_ACCOUNT*> AB_Banking::getAccounts | ( | ) |
Returns a list of pointers to currently known accounts. Please note that the pointers in this list are still owned by AqBanking, so you MUST NOT free them. However, destroying the list will not free the accounts, so it is safe to do that.
std::list<AB_ACCOUNT*> AB_Banking::getAccounts | ( | ) |
Returns a list of pointers to currently known accounts. Please note that the pointers in this list are still owned by AqBanking, so you MUST NOT free them. However, destroying the list will not free the accounts, so it is safe to do that.
std::list<std::string> AB_Banking::getActiveProviders | ( | ) |
std::list<std::string> AB_Banking::getActiveProviders | ( | ) |
const char* AB_Banking::getAppName | ( | ) |
Returns the application name as given to AB_Banking_new.
const char* AB_Banking::getAppName | ( | ) |
Returns the application name as given to AB_Banking_new.
int AB_Banking::getAppUserDataDir | ( | GWEN_BUFFER * | buf | ) | const |
int AB_Banking::getAppUserDataDir | ( | GWEN_BUFFER * | buf | ) | const |
AB_BANKING* AB_Banking::getCInterface | ( | ) |
AB_BANKING* AB_Banking::getCInterface | ( | ) |
AB_PROVIDER* AB_Banking::getProvider | ( | const char * | name | ) |
Loads a backend with the given name. You can use AB_Banking_GetProviderDescrs to retrieve a list of available backends. Such a backend can then be asked to return an account list.
AB_PROVIDER* AB_Banking::getProvider | ( | const char * | name | ) |
Loads a backend with the given name. You can use AB_Banking_GetProviderDescrs to retrieve a list of available backends. Such a backend can then be asked to return an account list.
std::list<GWEN_PLUGIN_DESCRIPTION*> AB_Banking::getProviderDescrs | ( | ) |
Returns a list of provider descriptions. You must free the contents of the list after using it via clearPluginDescrs() before deleting the list itself.
std::list<GWEN_PLUGIN_DESCRIPTION*> AB_Banking::getProviderDescrs | ( | ) |
Returns a list of provider descriptions. You must free the contents of the list after using it via clearPluginDescrs() before deleting the list itself.
int AB_Banking::getUserDataDir | ( | GWEN_BUFFER * | buf | ) | const |
int AB_Banking::getUserDataDir | ( | GWEN_BUFFER * | buf | ) | const |
std::list<AB_USER*> AB_Banking::getUsers | ( | ) |
Returns a list of pointers to currently known users. Please note that the pointers in this list are still owned by AqBanking, so you MUST NOT free them. However, destroying the list will not free the users, so it is safe to do that.
std::list<AB_USER*> AB_Banking::getUsers | ( | ) |
Returns a list of pointers to currently known users. Please note that the pointers in this list are still owned by AqBanking, so you MUST NOT free them. However, destroying the list will not free the users, so it is safe to do that.
std::list<GWEN_PLUGIN_DESCRIPTION*> AB_Banking::getWizardDescrs | ( | ) |
Returns a list of wizard descriptions. You must free the contents of the list after using it via clearPluginDescrs() before deleting the list itself.
std::list<GWEN_PLUGIN_DESCRIPTION*> AB_Banking::getWizardDescrs | ( | ) |
Returns a list of wizard descriptions. You must free the contents of the list after using it via clearPluginDescrs() before deleting the list itself.
virtual bool AB_Banking::importContext | ( | AB_IMEXPORTER_CONTEXT * | ctx, | |
uint32_t | flags | |||
) | [virtual] |
virtual bool AB_Banking::importContext | ( | AB_IMEXPORTER_CONTEXT * | ctx, | |
uint32_t | flags | |||
) | [virtual] |
virtual int AB_Banking::init | ( | ) | [virtual] |
See AB_Banking_Init
virtual int AB_Banking::init | ( | ) | [virtual] |
See AB_Banking_Init
int AB_Banking::loadAppConfig | ( | GWEN_DB_NODE ** | pDb, | |
uint32_t | guiid | |||
) |
int AB_Banking::loadAppConfig | ( | GWEN_DB_NODE ** | pDb, | |
uint32_t | guiid | |||
) |
int AB_Banking::loadAppSubConfig | ( | const char * | subGroup, | |
GWEN_DB_NODE ** | pDb, | |||
uint32_t | guiid | |||
) |
int AB_Banking::loadAppSubConfig | ( | const char * | subGroup, | |
GWEN_DB_NODE ** | pDb, | |||
uint32_t | guiid | |||
) |
int AB_Banking::loadSharedConfig | ( | const char * | name, | |
GWEN_DB_NODE ** | pDb, | |||
uint32_t | guiid | |||
) |
int AB_Banking::loadSharedConfig | ( | const char * | name, | |
GWEN_DB_NODE ** | pDb, | |||
uint32_t | guiid | |||
) |
int AB_Banking::loadSharedSubConfig | ( | const char * | name, | |
const char * | subGroup, | |||
GWEN_DB_NODE ** | pDb, | |||
uint32_t | guiid | |||
) |
int AB_Banking::loadSharedSubConfig | ( | const char * | name, | |
const char * | subGroup, | |||
GWEN_DB_NODE ** | pDb, | |||
uint32_t | guiid | |||
) |
int AB_Banking::lockAppConfig | ( | uint32_t | guiid | ) |
int AB_Banking::lockAppConfig | ( | uint32_t | guiid | ) |
int AB_Banking::lockSharedConfig | ( | const char * | name, | |
uint32_t | guiid | |||
) |
int AB_Banking::lockSharedConfig | ( | const char * | name, | |
uint32_t | guiid | |||
) |
int AB_Banking::onlineFini | ( | uint32_t | guiid | ) |
int AB_Banking::onlineFini | ( | uint32_t | guiid | ) |
int AB_Banking::onlineInit | ( | uint32_t | guiid | ) |
int AB_Banking::onlineInit | ( | uint32_t | guiid | ) |
int AB_Banking::saveAppConfig | ( | GWEN_DB_NODE * | db, | |
uint32_t | guiid | |||
) |
int AB_Banking::saveAppConfig | ( | GWEN_DB_NODE * | db, | |
uint32_t | guiid | |||
) |
int AB_Banking::saveAppSubConfig | ( | const char * | subGroup, | |
GWEN_DB_NODE * | dbSrc, | |||
uint32_t | guiid | |||
) |
int AB_Banking::saveAppSubConfig | ( | const char * | subGroup, | |
GWEN_DB_NODE * | dbSrc, | |||
uint32_t | guiid | |||
) |
int AB_Banking::saveSharedConfig | ( | const char * | name, | |
GWEN_DB_NODE * | db, | |||
uint32_t | guiid | |||
) |
int AB_Banking::saveSharedConfig | ( | const char * | name, | |
GWEN_DB_NODE * | db, | |||
uint32_t | guiid | |||
) |
int AB_Banking::saveSharedSubConfig | ( | const char * | name, | |
const char * | subGroup, | |||
GWEN_DB_NODE * | dbSrc, | |||
uint32_t | guiid | |||
) |
int AB_Banking::saveSharedSubConfig | ( | const char * | name, | |
const char * | subGroup, | |||
GWEN_DB_NODE * | dbSrc, | |||
uint32_t | guiid | |||
) |
int AB_Banking::unlockAppConfig | ( | uint32_t | guiid | ) |
int AB_Banking::unlockAppConfig | ( | uint32_t | guiid | ) |
int AB_Banking::unlockSharedConfig | ( | const char * | name, | |
uint32_t | guiid | |||
) |
int AB_Banking::unlockSharedConfig | ( | const char * | name, | |
uint32_t | guiid | |||
) |