Hello Ashish,
for sure this is possible. You have to register a CardTerminalListener
first, then you are able to use the CardInserted and CardRemoved events.
They are found in (opencard.core.event.CTListener,
opencard.core.event.CardTerminalEvent).
For details please have a look at the Opencard documentation available
at the website. There can be found an example of how to do this in
detail.
Hope this helps
Hans
Ashish Deshpande schrieb:
>
> Hello,
>
> If I want to write an OCF application, do I need to have the cardservice
> classes?
> I want to trap the events whether the card is inserted or not.
>
> For trapping the events we don't require the cardservice classses. Is it
> right?
>
> I am using Cyberflex access card from Schlumberger. I just want to write
> an application which traps the events for card insertion or removal.
> Is it possible to write such an application without CardService classes?
>
> Thanks and Regards,
> Ashish
>
> ---
> > 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.
--
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Hans Demski (mailto:[EMAIL PROTECTED])
Institute MEDIS, GSF Research Center (http://www-mi.gsf.de)
phone: +49-89-3187-4179, fax: +49-89-3187-3008
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
---
> 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.