14#include <QSharedPointer>
16#include <QWaitCondition>
28 bool mWaitingForAnswer;
29 QWaitCondition mWaitCondition;
30 QMutex mResponseAvailable;
31 QMutex mProcessResponse;
33 IfdMessageType mExpectedAnswerType;
34 QJsonObject mResponse;
35 const QSharedPointer<IfdDispatcherClient> mDispatcher;
39 QString mProgressMessage;
41 bool sendMessage(
const QSharedPointer<const IfdMessage>& pMessage, IfdMessageType pExpectedAnswer,
unsigned long pTimeout);
44 void onMessageReceived(IfdMessageType pMessageTpe,
const QJsonObject& pJsonObject);
51 IfdCard(
const QSharedPointer<IfdDispatcherClient>& pDispatcher,
const QString& pReaderName);
Definition: EstablishPaceChannelOutput.h:48
Code
Definition: GlobalStatus.h:26
EstablishPaceChannelOutput establishPaceChannel(PacePasswordId pPasswordId, int pPreferredPinLength, const QByteArray &pChat, const QByteArray &pCertificateDescription, quint8 pTimeoutSeconds=60) override
Establishes a PACE channel, i.e.
Definition: IfdCard.cpp:209
ResponseApduResult setEidPin(quint8 pTimeoutSeconds) override
Sets a new eID PIN, i.e.
Definition: IfdCard.cpp:239
IfdCard(const QSharedPointer< IfdDispatcherClient > &pDispatcher, const QString &pReaderName)
Definition: IfdCard.cpp:96
ResponseApduResult transmit(const CommandApdu &pCmd) override
Performs a transmit to the smart card.
Definition: IfdCard.cpp:182
bool isConnected() const override
Is the smart card connected, i.e.
Definition: IfdCard.cpp:170
void setProgressMessage(const QString &pMessage, int pProgress=-1) override
Sets the current workflow progress message.
Definition: IfdCard.cpp:176
CardReturnCode establishConnection() override
Establish a connection to the smart card.
Definition: IfdCard.cpp:123
~IfdCard() override
Definition: IfdCard.cpp:117
CardReturnCode releaseConnection() override
Destroys the previously established connection to the smart card.
Definition: IfdCard.cpp:147
A simple template renderer.
Definition: ActivationContext.h:15
quint8
Definition: ResponseApdu.h:62
Definition: ResponseApdu.h:115