AusweisApp2
Lade ...
Suche ...
Keine Treffer
NfcCard.h
gehe zur Dokumentation dieser Datei
1
7#pragma once
8
9#include "Card.h"
10
11#include <QNearFieldTarget>
12#include <QScopedPointer>
13
14
15namespace governikus
16{
18 : public Card
19{
20 Q_OBJECT
21
22 private:
23 bool mConnected;
24 bool mIsValid;
25 QScopedPointer<QNearFieldTarget> mNearFieldTarget;
26
27 public:
28 explicit NfcCard(QNearFieldTarget* pNearFieldTarget);
29
30 [[nodiscard]] bool isValid() const;
31 bool invalidateTarget(const QNearFieldTarget* pNearFieldTarget);
32
33 CardReturnCode establishConnection() override;
34 CardReturnCode releaseConnection() override;
35 bool isConnected() const override;
36 void setProgressMessage(const QString& pMessage, int pProgress = -1) override;
37
38 ResponseApduResult transmit(const CommandApdu& pCmd) override;
39
40 Q_SIGNALS:
41 void fireTargetError(QNearFieldTarget::Error pError);
42 void fireSetProgressMessage(const QString& pMessage);
43};
44
45} // namespace governikus
Definition: Card.h:45
Definition: NfcCard.h:19
bool isValid() const
Definition: NfcCard.cpp:29
void fireSetProgressMessage(const QString &pMessage)
bool invalidateTarget(const QNearFieldTarget *pNearFieldTarget)
Definition: NfcCard.cpp:35
bool isConnected() const override
Is the smart card connected, i.e.
Definition: NfcCard.cpp:80
CardReturnCode establishConnection() override
Establish a connection to the smart card.
Definition: NfcCard.cpp:47
CardReturnCode releaseConnection() override
Destroys the previously established connection to the smart card.
Definition: NfcCard.cpp:60
void setProgressMessage(const QString &pMessage, int pProgress=-1) override
Sets the current workflow progress message.
Definition: NfcCard.cpp:86
void fireTargetError(QNearFieldTarget::Error pError)
ResponseApduResult transmit(const CommandApdu &pCmd) override
Performs a transmit to the smart card.
Definition: NfcCard.cpp:93
A simple template renderer.
Definition: ActivationContext.h:15
Definition: ResponseApdu.h:115