Skip to content
Commit 7ba9c16d authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Clean up/modernize Card and its subclasses a bit

In particular, add constructors for converting a Card to the specific
Card subclasses. This ensures that all state already set on a Card is
copied to the specific subclass when we construct it. Previously, we
copied the serial number (but no other state) manually.

Card:
* Document that Card represents one of possibly many applications on
  a smartcard
* Make setAppName() protected since it's only supposed to be called by
  the subclasses during initialization
* Remove unused (and obsolete) mSlot, slot(), setSlot()
* Initialize member variables in class definition

NetKeyCard, OpenPGPCard, PIVCard:
* Remove default constructors and unused constructors from serial number
* Add constructors for converting a Card to the specific Card subclasses
parent 1af4827e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment