1 """Smartcard event observer.
2
3 __author__ = "gemalto http://www.gemalto.com"
4
5 Copyright 2001-2011 gemalto
6 Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
7
8 This file is part of pyscard.
9
10 pyscard is free software; you can redistribute it and/or modify
11 it under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
14
15 pyscard is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU Lesser General Public License for more details.
19
20 You should have received a copy of the GNU Lesser General Public License
21 along with pyscard; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 """
24
25
27 """This interface defines the event handlers called by the SimpleSCardApp."""
28
30 self.selectedcard = None
31 self.selectedreader = None
32
33
35 """Called when a card is activated in the reader tree control or toolbar."""
36 self.selectedcard = card
37
39 """Called when a reader is activated in the reader tree control or toolbar."""
40 self.selectedreader = reader
41
43 """Called when a card is deactivated in the reader tree control or toolbar."""
44 pass
45
47 """Called when a card is selected in the reader tree control or toolbar."""
48 self.selectedcard = None
49
51 """Called when a card is selected in the reader tree control or toolbar."""
52 self.selectedcard = card
53
55 """Called when a reader is selected in the reader tree control or toolbar."""
56 self.selectedreader = reader
57