AusweisApp
Lade ...
Suche ...
Keine Treffer
NfcCard.h
gehe zur Dokumentation dieser Datei
1
5#pragma once
6
7#include "Card.h"
8
9#include <QNearFieldTarget>
10#include <QScopedPointer>
11
12
13namespace governikus
14{
16 : public Card
17{
19
20 private:
21 bool mConnected;
22 bool mIsValid;
23 QScopedPointer<QNearFieldTarget> mNearFieldTarget;
24
25 public:
27
28 [[nodiscard]] bool isValid() const;
30
33 bool isConnected() const override;
34 void setProgressMessage(const QString& pMessage, int pProgress = -1) override;
35 void setErrorMessage(const QString& pMessage) override;
36
38
40 void fireTargetError(QNearFieldTarget::Error pError);
41 void fireSetProgressMessage(const QString& pMessage);
42};
43
44} // namespace governikus
Definition Card.h:43
Definition NfcCard.h:17
bool isValid() const
Definition NfcCard.cpp:29
NfcCard(QNearFieldTarget *pNearFieldTarget)
Definition NfcCard.cpp:16
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 setErrorMessage(const QString &pMessage) override
Definition NfcCard.cpp:93
void fireTargetError(QNearFieldTarget::Error pError)
ResponseApduResult transmit(const CommandApdu &pCmd) override
Performs a transmit to the smart card.
Definition NfcCard.cpp:100
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition ASN1TemplateUtil.h:112
Definition ResponseApdu.h:116