|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.dtt.ca.event.CAEvent
it.dtt.ca.event.SlotEvent
public class SlotEvent
This event notifies user about changes in the slot status (e.g. if a smart card is present or not in the given slot). It notifies also about card insertion errors or if the box cannot communicate with the smart card for any reason.
Field Summary | |
---|---|
static int |
CARD_ACCESS_DENIED
Notifies that access to the card currently inserted in the slot is denied; this normally means that the card does not correspond to the current active service and CAS. |
static int |
CARD_ERROR
Notifies a smart card is inserted into the reader but wrong ATR is received (e.g. because of a damaged card"). |
static int |
CARD_IN
Notifies a card insertion; this value is also returned when a card is present in the slot and a slot status check is performed. |
static int |
CARD_MUTED
Notifies that smart card is inserted into the reader but no ATR is retrieved because no electrical communication is established with the smart card (e.g. |
static int |
CARD_OUT
Notifies a card removal; this value is also returned when a card is not present in the slot and a slot status check is performed. |
static int |
CARD_VERIFYING
Notifies that the smart card is being verified |
static int |
ERROR_UNKNOWN
Notifies that status of the slot has not been retrieved yet |
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 |
SlotEvent(Slot slot,
java.lang.String description)
Create a SlotEvent instance |
Method Summary | |
---|---|
Slot |
getSlot()
Gives the slot which generated the event. |
int |
getType()
Returns the type of event that's arrived. |
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 |
---|
public static final int CARD_IN
Slot
,
Constant Field Valuespublic static final int CARD_OUT
Slot
,
Constant Field Valuespublic static final int CARD_ERROR
Slot
,
Constant Field Valuespublic static final int CARD_MUTED
Slot
,
Constant Field Valuespublic static final int CARD_ACCESS_DENIED
public static final int CARD_VERIFYING
public static final int ERROR_UNKNOWN
Constructor Detail |
---|
protected SlotEvent(Slot slot, java.lang.String description)
slot
- the slot generating the eventMethod Detail |
---|
public Slot getSlot()
public int getType()
getType
in class CAEvent
CAEvent.SLOT_EVENT
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |