it.dtt.ca.event
Class HistoryUpdateEvent

java.lang.Object
  extended by it.dtt.ca.event.CAEvent
      extended by it.dtt.ca.event.SmartCardEvent
          extended by it.dtt.ca.event.HistoryUpdateEvent

public class HistoryUpdateEvent
extends SmartCardEvent

This event notifies that an history stored on the card is changed.


Field Summary
static int MESSAGE_HISTORY_CHANGED
          Notifies that the message list stored on the card is changed.
static int PURCHASE_HISTORY_CHANGED
          Notifies that the purchase list stored on the card is changed.
static int RECHARGE_HISTORY_CHANGED
          Notifies that the recharge list stored on the card is changed.
 
Fields inherited from class it.dtt.ca.event.CAEvent
CA_ACCESS_EVENT, CA_PRODUCT_EVENT, HISTORY_UPDATE_EVENT, NEW_MESSAGE_EVENT, PIN_REQUEST_EVENT, RECHARGE_EVENT, SLOT_EVENT, SMART_CARD_STATUS_EVENT
 
Constructor Summary
protected HistoryUpdateEvent(SmartCard smartCard, java.lang.Object data, java.lang.String description, History history)
          Generate an HistoryUpdateEvent instance.
 
Method Summary
 History getHistory()
          Retrieves the history that has been updated on the smart card
 int getType()
          Returns the type of event that's arrived.
 
Methods inherited from class it.dtt.ca.event.SmartCardEvent
getSmartCard
 
Methods inherited from class it.dtt.ca.event.CAEvent
getData, getDescription, getPrivateData, getSource, setPrivateData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PURCHASE_HISTORY_CHANGED

public static final int PURCHASE_HISTORY_CHANGED
Notifies that the purchase list stored on the card is changed.

See Also:
Constant Field Values

RECHARGE_HISTORY_CHANGED

public static final int RECHARGE_HISTORY_CHANGED
Notifies that the recharge list stored on the card is changed.

See Also:
Constant Field Values

MESSAGE_HISTORY_CHANGED

public static final int MESSAGE_HISTORY_CHANGED
Notifies that the message list stored on the card is changed.

See Also:
Constant Field Values
Constructor Detail

HistoryUpdateEvent

protected HistoryUpdateEvent(SmartCard smartCard,
                             java.lang.Object data,
                             java.lang.String description,
                             History history)
Generate an HistoryUpdateEvent instance.

Parameters:
smartCard - the smart card generating the event.
data - event related data
description - description of the event
history - the updated history of messages.
Method Detail

getHistory

public History getHistory()
Retrieves the history that has been updated on the smart card

Returns:
the history

getType

public int getType()
Returns the type of event that's arrived.

Specified by:
getType in class CAEvent
Returns:
type of event.
See Also:
CAEvent.HISTORY_UPDATE_EVENT