12#include <QSharedPointer>
14#include <QWaitCondition>
28 friend class ::test_IfdCard;
31 bool mWaitingForAnswer;
32 QWaitCondition mWaitCondition;
33 QMutex mResponseAvailable;
34 QMutex mProcessResponse;
36 IfdMessageType mExpectedAnswerType;
37 QJsonObject mResponse;
38 const QSharedPointer<IfdDispatcherClient> mDispatcher;
42 QString mProgressMessage;
44 bool sendMessage(
const QSharedPointer<const IfdMessage>& pMessage, IfdMessageType pExpectedAnswer,
unsigned long pExtraTimeout = 0);
47 void onMessageReceived(IfdMessageType pMessageTpe,
const QJsonObject& pJsonObject);
54 IfdCard(
const QSharedPointer<IfdDispatcherClient>& pDispatcher,
const QString& pReaderName);
Card()
Definition Card.cpp:15
Definition EstablishPaceChannelOutput.h:45
Code
Definition GlobalStatus.h:25
EstablishPaceChannelOutput establishPaceChannel(PacePasswordId pPasswordId, int pPreferredPinLength, const QByteArray &pChat, const QByteArray &pCertificateDescription) override
Establishes a PACE channel, i.e.
Definition IfdCard.cpp:230
ResponseApduResult setEidPin(quint8 pTimeoutSeconds) override
Sets a new eID PIN, i.e.
Definition IfdCard.cpp:288
IfdCard(const QSharedPointer< IfdDispatcherClient > &pDispatcher, const QString &pReaderName)
Definition IfdCard.cpp:108
ResponseApduResult transmit(const CommandApdu &pCmd) override
Performs a transmit to the smart card.
Definition IfdCard.cpp:202
bool isConnected() const override
Is the smart card connected, i.e.
Definition IfdCard.cpp:184
void setErrorMessage(const QString &pMessage) override
Definition IfdCard.cpp:196
void setProgressMessage(const QString &pMessage, int pProgress=-1) override
Sets the current workflow progress message.
Definition IfdCard.cpp:190
CardReturnCode destroyPaceChannel() override
Destroys an existing PACE channel, i.e.
Definition IfdCard.cpp:265
CardReturnCode establishConnection() override
Establish a connection to the smart card.
Definition IfdCard.cpp:135
~IfdCard() override
Definition IfdCard.cpp:129
CardReturnCode releaseConnection() override
Destroys the previously established connection to the smart card.
Definition IfdCard.cpp:160
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17
quint8
Definition ResponseApdu.h:65
Definition ResponseApdu.h:116