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
Definition: Card.h:24
Definition: CommandApdu.h:16
Definition: IosCard.h:21
IosCard(IosCardPointer *pTag)
virtual CardReturnCode disconnect() override
Destroys the previously established connection to the smart card.
virtual CardReturnCode connect() override
Establish a connection to the smart card.
virtual ResponseApduResult transmit(const CommandApdu &pCmd) override
Performs a transmit to the smart card.
virtual bool isConnected() override
Is the smart card connected, i.e.
virtual void setProgressMessage(const QString &pMessage) override
Sets the current workflow progress message.
bool isValid() const
virtual ~IosCard() override
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15
Implementation detail which can only be used by Object-C++ since it stores a pointer to an Objective-...
Definition: IosCardPointer.h:12
Definition: ResponseApdu.h:107