1 """The CardConnectionEvent is sent to CardConnectionObserver objects
2 when a CardConnection event occurs.
3
4 __author__ = "http://www.gemalto.com"
5
6 Copyright 2001-2012 gemalto
7 Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
8
9 This file is part of pyscard.
10
11 pyscard is free software; you can redistribute it and/or modify
12 it under the terms of the GNU Lesser General Public License as published by
13 the Free Software Foundation; either version 2.1 of the License, or
14 (at your option) any later version.
15
16 pyscard is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU Lesser General Public License for more details.
20
21 You should have received a copy of the GNU Lesser General Public License
22 along with pyscard; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 """
25
26
28 """Base class for card connection events.
29
30 This event is notified by CardConnection objects."""
31
33 """
34 @param type: 'connect', 'disconnect', 'command', 'response'
35 @param args: None for 'connect' or 'disconnect'
36 command APDU byte list for 'command'
37 [response data, sw1, sw2] for 'response'
38 """
39 self.type = type
40 self.args = args
41