+
     h\
  c                   s   R t ^ RI5  ! R R4      t]R8X  d    . R	Ot^^.t^ RIHt ]! 4       ^ ,          P                  4       t	]! ]	4      t
]
P                  P                  4        ]
P                  P                  ]],           4      w  ttt]! ]R R]R 24       ]
P                  P%                  4        ]
P                  P'                  4        R# R# )
a  Card service abstract class.

A card service is a class providings specific smart card functionality,
e.g.  a GSM file system or an Open Platform loader.  CardService is an
abstract class from which concrete card services are derived.  A concrete
card service is almost always smart card operating system specific.

The card service performs its specific smart card functionality by accessing
the smartcard with a CardConnection.

__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
)Z*c                   sP   a  ] tR t^$t o RtR	R ltR tR tR t]	R 4       t
RtV tR# )
CardServicezCard service abstract class.Nc                s    Wn         W n        R# )zConstruct a new card service and bind to a smart card in a reader.

@param connection:     the CardConnection used to access the smart card
N)
connectioncardname)selfr   r   s   &&&</usr/lib64/python3.14/site-packages/smartcard/CardService.py__init__ZCardService.__init__'   s    
 %     c                s,    V P                  RRR4       R# )z?Destructor. Disconnect card and destroy card service resources.N)__exit__r      &r   __del__ZCardService.__del__/   s    dD$'r   c                s    V # )zEnter the runtime context. r   r	   r   	__enter__ZCardService.__enter__3   s    r   c                sn    V P                   P                  4        V P                   P                  4        R# )zDExit the runtime context and disconnect + release the PC/SC context.F)r   
disconnectrelease)r   Zexc_typeZ	exc_valueZexc_tracebacks   &&&&r   r   ZCardService.__exit__7   s%    ""$!r   c                s    R # Nr   )r   r	   r   supportsZCardService.supports=   s    r   )r   r   r   )__name__Z
__module__Z__qualname__Z__firstlineno____doc__r   r
   r   r   Zstaticmethodr   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r    r    $   s0     &!(  r   r    Z__main__)readersZXZ N)i   i       r   i   )r   Zsmartcard.scardr    r   ZSELECTZ
DF_TELECOMZsmartcard.Systemr   ZcreateConnectionZccZcsr   ZconnectZtransmitZdataZsw1Zsw2Zprintr   r   r   r   r   <module>r      s   @  < z;+FJ(	1	&	&	(B	RBMM]]++FZ,?@ND#s	SG1SG
MMMM r   