AusweisApp2
IosCard.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "Card.h"
10 
11 #include <QMutex>
12 #include <QWaitCondition>
13 
14 
15 namespace governikus
16 {
17 struct IosCardPointer;
18 
19 class IosCard
20  : public Card
21 {
22  Q_OBJECT
23 
24  private:
25  IosCardPointer* const mCard;
26  bool mConnected;
27  QWaitCondition mWaitCondition;
28  QMutex mCallbackDone;
29 
30  public:
31  explicit IosCard(IosCardPointer* pTag);
32  virtual ~IosCard() override;
33 
34  bool isValid() const;
36 
37  virtual CardReturnCode connect() override;
38  virtual CardReturnCode disconnect() override;
39  virtual bool isConnected() override;
40  virtual void setProgressMessage(const QString& pMessage) override;
41 
42  virtual ResponseApduResult transmit(const CommandApdu& pCmd) override;
43 
44  Q_SIGNALS:
47 };
48 
49 } // namespace governikus
governikus::Card
Definition: Card.h:24
governikus::CommandApdu
Definition: CommandApdu.h:16
governikus::ReaderDetector::attachedDevIds
virtual QVector< UsbId > attachedDevIds() const
Definition: ReaderDetector_generic.cpp:23
governikus::IosCard::connect
virtual CardReturnCode connect() override
Establish a connection to the smart card.
governikus::UsbId::getVendorId
unsigned int getVendorId() const
Definition: UsbId.cpp:19
governikus::IosCard::isConnected
virtual bool isConnected() override
Is the smart card connected, i.e.
governikus::UsbId
Definition: UsbId.h:14
governikus::UsbId::getProductId
unsigned int getProductId() const
Definition: UsbId.cpp:25
governikus::IosCardPointer
Implementation detail which can only be used by Object-C++ since it stores a pointer to an Objective-...
Definition: IosCardPointer.h:12
governikus::IosCard::fireTransmitFailed
void fireTransmitFailed()
governikus::IosCard::fireConnectFailed
void fireConnectFailed()
DeviceListener::fireDeviceChangeDetected
void fireDeviceChangeDetected()
PRODUCT_ID
#define PRODUCT_ID
Definition: ReaderDetector_osx.cpp:20
governikus::IosCard::disconnect
virtual CardReturnCode disconnect() override
Destroys the previously established connection to the smart card.
governikus::ReaderDetector
Definition: ReaderDetector.h:38
governikus
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15
governikus::IosCard::isValid
bool isValid() const
DeviceListener
Definition: ReaderDetector_linux.cpp:24
governikus::IosCard
Definition: IosCard.h:21
ReaderDetector.h
VENDOR_ID
#define VENDOR_ID
Definition: ReaderDetector_osx.cpp:19
governikus::IosCard::IosCard
IosCard(IosCardPointer *pTag)
governikus::IosCard::~IosCard
virtual ~IosCard() override
governikus::IosCard::invalidateTarget
bool invalidateTarget()
governikus::ResponseApduResult
Definition: ResponseApdu.h:107
governikus::IosCard::transmit
virtual ResponseApduResult transmit(const CommandApdu &pCmd) override
Performs a transmit to the smart card.
governikus::IosCard::setProgressMessage
virtual void setProgressMessage(const QString &pMessage) override
Sets the current workflow progress message.
governikus::ReaderDetector::fireReaderChangeDetected
void fireReaderChangeDetected()
Card.h