Package smartcard :: Package pcsc :: Module PCSCCardRequest :: Class PCSCCardRequest
[hide private]
[frames] | no frames]

Class PCSCCardRequest

source code


PCSC CardRequest class.

Instance Methods [hide private]
 
__init__(self, newcardonly=False, readers=None, cardType=None, cardServiceClass=None, timeout=1)
Construct new PCSCCardRequest.
source code
 
getReaderNames(self)
Returns the list or PCSC readers on which to wait for cards.
source code
 
waitforcard(self)
Wait for card insertion and returns a card service.
source code
 
waitforcardevent(self)
Wait for card insertion or removal.
source code

Inherited from AbstractCardRequest.AbstractCardRequest: getReaders

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, newcardonly=False, readers=None, cardType=None, cardServiceClass=None, timeout=1)
(Constructor)

source code 

Construct new PCSCCardRequest.

Parameters:
  • newcardonly - if True, request a new card default is False, i.e. accepts cards already inserted
  • readers - the list of readers to consider for requesting a card default is to consider all readers
  • cardType - the CardType class to wait for; default is AnyCardType, i.e. the request will returns with new or already inserted cards
  • cardServiceClass - the specific card service class to create and bind to the card default is to create and bind a PassThruCardService
  • timeout - the time in seconds we are ready to wait for connecting to the requested card. default is to wait one second to wait forever, set timeout to None
Overrides: object.__init__

waitforcard(self)

source code 

Wait for card insertion and returns a card service.

Overrides: AbstractCardRequest.AbstractCardRequest.waitforcard

waitforcardevent(self)

source code 

Wait for card insertion or removal.

Overrides: AbstractCardRequest.AbstractCardRequest.waitforcardevent