AusweisApp2
DataChannel.h
gehe zur Dokumentation dieser Datei
1 
8 #pragma once
9 
10 #include "GlobalStatus.h"
11 
12 #include <QByteArray>
13 #include <QObject>
14 
15 namespace governikus
16 {
18  : public QObject
19 {
20  Q_OBJECT
21 
22  public:
23  DataChannel() = default;
24  ~DataChannel() override;
25 
26  Q_INVOKABLE virtual void send(const QByteArray& pDataBlock) = 0;
27  Q_INVOKABLE virtual void close() = 0;
28  [[nodiscard]] virtual const QString& getId() const = 0;
29 
30  Q_SIGNALS:
31  void fireReceived(const QByteArray& pDataBlock);
32  void fireClosed(GlobalStatus::Code pCloseCode);
33 };
34 
35 } // namespace governikus
Definition: DataChannel.h:19
virtual Q_INVOKABLE void send(const QByteArray &pDataBlock)=0
virtual Q_INVOKABLE void close()=0
void fireReceived(const QByteArray &pDataBlock)
virtual const QString & getId() const =0
void fireClosed(GlobalStatus::Code pCloseCode)
Code
Definition: GlobalStatus.h:26
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16