22 ReaderManagerPluginType mPluginType;
27 CardType mShelvedCard;
31 ReaderManagerPluginType pPluginType = ReaderManagerPluginType::UNKNOWN,
45 return mPluginType != ReaderManagerPluginType::UNKNOWN;
51 mPluginType = ReaderManagerPluginType::UNKNOWN;
52 mCardInfo =
CardInfo(CardType::NONE);
70 return mCardInfo.getCardType();
76 return mCardInfo.getCardTypeString();
82 return mCardInfo.getCardType() != CardType::NONE;
88 return QList<CardType>({CardType::EID_CARD, CardType::SMART_EID}).contains(mCardInfo.getCardType());
94 return mCardInfo.getRetryCounter();
100 return mCardInfo.isRetryCounterDetermined();
106 return mCardInfo.isPinDeactivated();
112 return mCardInfo.isPukInoperative();
118 return mCardInfo.getMobileEidType() == MobileEidType::HW_KEYSTORE;
124 return mShelvedCard != CardType::NONE;
130 mShelvedCard = mCardInfo.getCardType();
131 mCardInfo.setCardType(CardType::NONE);
140 mCardInfo.setCardType(mShelvedCard);
146 mCardInfo = pCardInfo;
158 mBasicReader = pIsBasicReader;
170 mMaxApduLength = pMaxApduLength;
176 return mMaxApduLength;
182 return mMaxApduLength >= 0 && mMaxApduLength < 500;
Definition ReaderConfigurationInfo.h:17
void insertCard()
Definition ReaderInfo.h:138
void setCardInfo(const CardInfo &pCardInfo)
Definition ReaderInfo.h:144
bool isBasicReader() const
Definition ReaderInfo.h:162
void setMaxApduLength(int pMaxApduLength)
Definition ReaderInfo.h:168
bool wasShelved() const
Definition ReaderInfo.h:122
CardInfo & getCardInfo()
Definition ReaderInfo.h:56
friend class Reader
Definition ReaderInfo.h:19
ReaderManagerPluginType getPluginType() const
Definition ReaderInfo.h:37
bool insufficientApduLength() const
Definition ReaderInfo.h:180
const CardInfo & getCardInfo() const
Definition ReaderInfo.h:62
bool isRetryCounterDetermined() const
Definition ReaderInfo.h:98
bool hasEid() const
Definition ReaderInfo.h:86
bool isInsertable() const
Definition ReaderInfo.cpp:50
void shelveCard()
Definition ReaderInfo.h:128
ReaderConfigurationInfo getReaderConfigurationInfo() const
Definition ReaderInfo.cpp:38
CardType getCardType() const
Definition ReaderInfo.h:68
ReaderInfo(const QString &pName=QString(), ReaderManagerPluginType pPluginType=ReaderManagerPluginType::UNKNOWN, const CardInfo &pCardInfo=CardInfo(CardType::NONE))
int getMaxApduLength() const
Definition ReaderInfo.h:174
bool isPinDeactivated() const
Definition ReaderInfo.h:104
bool isValid() const
Definition ReaderInfo.h:43
const QString & getName() const
Definition ReaderInfo.h:150
void invalidate()
Definition ReaderInfo.h:49
int getRetryCounter() const
Definition ReaderInfo.h:92
bool isPukInoperative() const
Definition ReaderInfo.h:110
bool hasCard() const
Definition ReaderInfo.h:80
bool isSoftwareSmartEid() const
Definition ReaderInfo.h:116
QString getCardTypeString() const
Definition ReaderInfo.h:74
void setBasicReader(bool pIsBasicReader)
Definition ReaderInfo.h:156
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17