Package smartcard :: Module CardMonitoring :: Class CardMonitor :: Class __CardMonitorSingleton
[hide private]
[frames] | no frames]

Class __CardMonitorSingleton

source code


The real smart card monitor class.

A single instance of this class is created by the public CardMonitor class.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
addObserver(self, observer)
Add an observer.
source code
 
deleteObserver(self, observer)
Remove an observer.
source code
 
__str__(self)
str(x)
source code

Inherited from Observer.Observable: clearChanged, countObservers, deleteObservers, hasChanged, notifyObservers, setChanged

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

addObserver(self, observer)

source code 

Add an observer.

We only start the card monitoring thread when there are observers.

Overrides: Observer.Observable.addObserver

deleteObserver(self, observer)

source code 

Remove an observer.

We delete the CardMonitoringThread reference when there are no more observers.

Overrides: Observer.Observable.deleteObserver

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)