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;
45 bool sendMessage(
const QSharedPointer<const IfdMessage>& pMessage, IfdMessageType pExpectedAnswer,
unsigned long pExtraTimeout = 0);
48 void onMessageReceived(IfdMessageType pMessageType,
const QJsonObject& pJsonObject);
49 void onDispatcherClosed(GlobalStatus::Code pCloseCode,
const QByteArray& pId);
55 IfdCard(
const QSharedPointer<IfdDispatcherClient>& pDispatcher,
const QString& pReaderName);
Definition EstablishPaceChannelOutput.h:45
EstablishPaceChannelOutput establishPaceChannel(PacePasswordId pPasswordId, int pPreferredPinLength, const QByteArray &pChat, const QByteArray &pCertificateDescription) override
Establishes a PACE channel, i.e.
Definition IfdCard.cpp:243
ResponseApduResult setEidPin(quint8 pTimeoutSeconds) override
Sets a new eID PIN, i.e.
Definition IfdCard.cpp:306
IfdCard(const QSharedPointer< IfdDispatcherClient > &pDispatcher, const QString &pReaderName)
Definition IfdCard.cpp:120
ResponseApduResult transmit(const CommandApdu &pCmd) override
Performs a transmit to the smart card.
Definition IfdCard.cpp:215
bool isConnected() const override
Is the smart card connected, i.e.
Definition IfdCard.cpp:197
void setErrorMessage(const QString &pMessage) override
Definition IfdCard.cpp:209
void setProgressMessage(const QString &pMessage, int pProgress=-1) override
Sets the current workflow progress message.
Definition IfdCard.cpp:203
CardReturnCode destroyPaceChannel() override
Destroys an existing PACE channel, i.e.
Definition IfdCard.cpp:283
CardReturnCode establishConnection() override
Establish a connection to the smart card.
Definition IfdCard.cpp:148
~IfdCard() override
Definition IfdCard.cpp:142
CardReturnCode releaseConnection() override
Destroys the previously established connection to the smart card.
Definition IfdCard.cpp:173
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17
quint8
Definition ResponseApdu.h:65
Definition ResponseApdu.h:116