#include <ctgeldkarte.h>
Inheritance diagram for CTGeldKarte:
Public Member Functions | |
const CardData & | cardData () const |
double | readLoadedValue () |
double | readMaxLoadedValue () |
double | readMaxTransactionValue () |
Constructors/Destructor | |
CTGeldKarte (const CTCard &c) | |
virtual | ~CTGeldKarte () |
Opening and closing operations | |
Methods to connect and disconnect the card. Most other methods only work if the card is open. | |
virtual CTError | reopenCard () |
Informational methods | |
These methods tell you about the type and the status of the card. | |
virtual string | cardType () |
virtual string | cardTypes () |
Opening and closing operations | |
Methods to connect and disconnect the card. Most other methods only work if the card is open. | |
virtual CTError | openCard () |
Classes | |
class | CardData |
|
|
|
|
|
|
|
This method returns a short name of the class which handles this card. A HBCI card for example returns "HBCICard". So you can use this method to check for the type of the card. Reimplemented from CTProcessorCard. |
|
This method returns a comma separated list of all card types this card inherits including the type of this card, e.g. a HBCI card would return "CTProcessorCard, HBCICard". If you overload this method in your own class (you SHOULD) you simply have to call this method of the class it directly inherits. That class will then do the same, so that there is a list upon return. Reimplemented from CTProcessorCard. |
|
Opens the card for usage. This way the card is powered on. This method does some basic checks and retrieves basic information about the card (whether it is a memory card or a processor card, the size of the memory etc). When this method successfully returns the card may be used.
Reimplemented from CTCard. |
|
Returns the amount of money loaded onto the card. This value is adapted according to the setting in EF_ID, so you may use this value returned directly. The currency is stored in the CardData object which you can get via cardData(). |
|
Returns the maximum amount of money which can be stored on this card. Please see readLoadedValue() for details. |
|
Returns the maximum amount of money which can be transfered in one setting with this card. Please see readLoadedValue() for details. |
|
When this method is called normally the card is already opened by means of openCard(). However, it is likely that openCard() has been called assuming this card is only a CTCard() object, nothing special. You may then call THIS method here on all known card classes to check for the type of this card. This method must assume that any file on the card is already selected, so it is in most cases a good idea to select the MF as the first action of this method. If the executing class finds that the card inserted is not of a type it can handle then it MUST return an error. Reimplemented from CTProcessorCard. |