Hi,

I'm trying to use SmartCard.getSmartCard to get a SmartCard reference 
when a new card is inserted (i.e. I'm doing this in cardInserted)

However, many of the method signatures have been deprecated as of OCF 1.2 
and the one I am supposed to use is:

getSmartCard( CardTerminalEvent, CardRequest)

Now this seems really stupid to me, as I have to create a CardRequest 
object using values taken from the even I'm passing to getSmartCard! As 
far as I can see the only difference is the int value for 
ANYCARD/NEWCARD, which is all I really need to specify (the rest can be 
gleaned from the event).

Does anyone know why this is?! Surely it would make sense to have:

getSmartCard( CardTerminalEvent, int reqCardType)

Where the value of the second parameter is CardRequest.ANYCARD or 
CardRequest.NEWCARD. This saves the hassle of creating another 
"senseless" object.

Oh well...

Cheers




---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe
! in the body.

Reply via email to