Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

HBCI::Hbci Class Reference

The central user interaction class for all HBCI connections through OpenHBCI. More...

#include <hbci.h>

Inheritance diagram for HBCI::Hbci:

Inheritance graph
[legend]
List of all members.

Public Methods

 Hbci (bool readonly=false, bool retrievalOnly=false)
virtual ~Hbci ()
User Interaction
Pointer< Authauthentificator () const
void setAuthentificator (Pointer< Auth > a)
Pointer< Interactorinteractor () const
void setInteractor (Pointer< Interactor > i)
HBCI configuration
bool isReadOnly () const
bool isRetrievalOnly () const
System identification
const string & systemName () const
void setSystemName (const string &n)
const string & systemVersion () const
void setSystemVersion (const string &s)

Static Public Methods

Version Information
void libraryVersion (int &major, int &minor, int &patchlevel)
void libraryVersion (int &major, int &minor, int &patchlevel, int &build)
DLLIMPORT int debugLevel ()
DLLIMPORT void setDebugLevel (int l)

Detailed Description

The central user interaction class for all HBCI connections through OpenHBCI.

This is the central user interaction class for all HBCI connections through OpenHBCI. You need exactly one object of this class when you use OpenHBCI.

This class contains objects for user-interaction (Interactor, Auth), system version and name, and the configuration mode flags for OpenHBCI (readonly, retrievalonly).

Author:
Martin Preuss<openhbci@aquamaniac.de>


Constructor & Destructor Documentation

HBCI::Hbci::Hbci bool    readonly = false,
bool    retrievalOnly = false
 

Constructor.

Author:
Martin Preuss<openhbci@aquamaniac.de>
Parameters:
readonly  if true then no jobs are allowed which actually do something with your account at the bank. (e.g. JobSingleTransfer)
retrievalOnly  If set to true, OpenHBCI will only store the minimum of data per account required for subsequent retrieval of account data. I.e. it will not store the balance, transactions, and standing orders of an account.

virtual HBCI::Hbci::~Hbci   [virtual]
 

Default Destructor.


Member Function Documentation

Pointer<Auth> HBCI::Hbci::authentificator   const [inline]
 

Returns the Auth currently to be used.

This returns a pointer to an object which can be used for authentification. This is used by the media to ask for the pin. When creating the HBCI-object this one gets a new authentificator assigned (Auth). As you can see this is a perfect example of the value of Pointer. When assigning a new Auth object you don't have to care whether already is one and how it was created. Simply do a
authentificator=new Auth()
To reassign it, if there already were one, it gets deleted automatically by Pointer ;-)

DLLIMPORT int HBCI::Hbci::debugLevel   [static]
 

Returns the current debugLevel. The higher this value the more debug messages you see. Default is zero.

Pointer<Interactor> HBCI::Hbci::interactor   const [inline]
 

Returns the HBCIInteractor currently to be used.

bool HBCI::Hbci::isReadOnly   const [inline]
 

Returns true if OpenHBCI is in read-only mode.

Returns true if OpenHBCI is in read-only mode, i.e. no jobs are allowed which actually do something with your account at the bank. (e.g. JobSingleTransfer)

Author:
Martin Preuss<openhbci@aquamaniac.de>
Returns :
true if read-only, false otherwise

bool HBCI::Hbci::isRetrievalOnly   const [inline]
 

Returns true if OpenHBCI is in retrieval-only mode.

Returns true if OpenHBCI is in retrieval-only mode, i.e. OpenHBCI will only store the minimum of data per account required for subsequent retrieval of account data. I.e. it will not store the balance, transactions, and standing orders of an account.

void HBCI::Hbci::libraryVersion int &    major,
int &    minor,
int &    patchlevel,
int &    build
[static]
 

Gives you the library version.

Gives you the library version. This might be used by your application to determine the capabilities of the current openHBCI version.

Author:
Martin Preuss<openhbci@aquamaniac.de>
Parameters:
major  reference to an int variable to receive the major version
minor  reference to an int variable to receive the minor version
patchlevel  reference to an int variable to receive the patchlevel
build  reference to an int variable to receive the build number

void HBCI::Hbci::libraryVersion int &    major,
int &    minor,
int &    patchlevel
[static]
 

Gives you the library version.

Gives you the library version. This might be used by your application to determine the capabilities of the current openHBCI version.

Author:
Martin Preuss<openhbci@aquamaniac.de>
Parameters:
major  reference to an int variable to receive the major version
minor  reference to an int variable to receive the minor version
patchlevel  reference to an int variable to receive the patchlevel

void HBCI::Hbci::setAuthentificator Pointer< Auth   a [inline]
 

Set a new HBCIAuth to be used.

DLLIMPORT void HBCI::Hbci::setDebugLevel int    l [static]
 

Set the current debugLevel. The higher this value the more debug messages you see. Defaults to zero.

void HBCI::Hbci::setInteractor Pointer< Interactor   i [inline]
 

Set a new Interactor to be used.

The Interactor is a base class that provides methods for all occasions where the core OpenHBCI needs user interaction.

void HBCI::Hbci::setSystemName const string &    n
 

Set the system name.

Use this to define the system name. It defaults to HBCI_SYSTEM_NAME which is probably set to "openhbci".

void HBCI::Hbci::setSystemVersion const string &    s
 

Set the system version string.

Use this to define the system version. It defaults to HBCI_SYSTEM_VERSION.

const string& HBCI::Hbci::systemName   const [inline]
 

Returns the system name.

This is the system name that OpenHBCI tells the bank.

const string& HBCI::Hbci::systemVersion   const [inline]
 

Returns the system version as a string.

This is the system version that OpenHBCI tells the bank when communicating.


The documentation for this class was generated from the following file:
Generated on Mon Jun 23 13:41:10 2003 for openhbci by doxygen1.2.17