+
     h4  c                   s    R t ^ RIHt  ! R R4      t]R8X  d    ^ RIHt ]! R4       ]! ^
RR7      ;_uu_ 4       t]P                  4       ;_uu_ 4       t
]
P                  P                  4        ]! ]
P                  P                  4       R	,           ]! ]
P                  P                  4       4      ,           4       ]
P                  P                  4        R
R
R
4       R
R
R
4       R
# R
#   + '       g   i     L; i  + '       g   i     R
# ; i)al  Smartcard CardRequest.

__author__ = "https://www.gemalto.com/"

Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com

This file is part of pyscard.

pyscard is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

pyscard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with pyscard; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
)PCSCCardRequestc                   sL   a  ] tR t^t o RtR
R ltR tR tR tR t	R t
R	tV tR# )CardRequestzxA CardRequest is used for waitForCard() invocations and specifies what
kind of smart card an application is waited for.
Nc                s*    \        WW4V4      V n        R# )a  Construct new CardRequest.

@param newcardonly: if True, request a new card
                    default is False, i.e. accepts cards already
                    inserted

@param readers:     the list of readers to consider for
                    requesting a card default is to consider all
                    readers

@param cardType:    the L{smartcard.CardType.CardType} to wait for;
                    default is L{smartcard.CardType.AnyCardType},
                    i.e. the request will succeed with any card

@param cardServiceClass: the specific card service class to create
                    and bind to the card default is to create
                    and bind a L{smartcard.PassThruCardService}

@param 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
N)r    pcsccardrequest)selfnewcardonlyZreadersZcardTypeZcardServiceClasstimeouts   &&&&&&</usr/lib64/python3.14/site-packages/smartcard/CardRequest.py__init__ZCardRequest.__init__!   s    >  /(g 
    c                6    V P                   P                  4       # )z7Returns the list or readers on which to wait for cards.)r   
getReadersr      &r   r
   ZCardRequest.getReadersD   s    ##..00r   c                r	   )z3Wait for card insertion and returns a card service.)r   waitforcardr   r   r   r   ZCardRequest.waitforcardH   s    ##//11r   c                r	   )z#Wait for card insertion or removal.)r   waitforcardeventr   r   r   r   ZCardRequest.waitforcardeventL   s    ##4466r   c                s    V # )zEnter the runtime context. r   r   r   	__enter__ZCardRequest.__enter__P   s    r   c                s:    V P                   P                  4        R# )z7Exit the runtime context and release the PC/SC context.F)r   Zrelease)r   Zexc_typeZ	exc_valueZexc_tracebacks   &&&&r   __exit__ZCardRequest.__exit__T   s    $$&r   )r   )FNNNi   )__name__Z
__module__Z__qualname__Z__firstlineno____doc__r   r
   r   r   r   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      s.     !
F127 r   r   Z__main__)toHexStringz#Insert a new card within 10 secondsT)r   r   Z N)r   Zsmartcard.pcsc.PCSCCardRequestr    r   r   Zsmartcard.utilr   ZprintZcrr   ZcsZ
connectionZconnectZ	getReaderZgetATRZ
disconnectr   r   r   <module>r      s   0 ;; ;| z>*	
/0	RT	2	2b^^MM!!#"--))+c1K@T@T@V4WWXMM$$&  
3	2   
3	2	2s$   C<BC)	C<)C94C<<D	