AusweisApp
 
Lade ...
Suche ...
Keine Treffer
DataChannel.h
gehe zur Dokumentation dieser Datei
1
4
5#pragma once
6
7#include "GlobalStatus.h"
8
9#include <QByteArray>
10#include <QObject>
11
12namespace governikus
13{
15 : public QObject
16{
17 Q_OBJECT
18
19 public:
20 DataChannel() = default;
21 ~DataChannel() override;
22
23 Q_INVOKABLE virtual void send(const QByteArray& pDataBlock) = 0;
24 Q_INVOKABLE virtual void close() = 0;
25 [[nodiscard]] virtual bool isPairingConnection() const = 0;
26 [[nodiscard]] virtual const QByteArray& getId() const = 0;
27
28 Q_SIGNALS:
29 void fireReceived(const QByteArray& pDataBlock);
30 void fireClosed(GlobalStatus::Code pCloseCode);
31};
32
33} // namespace governikus
virtual Q_INVOKABLE void send(const QByteArray &pDataBlock)=0
virtual Q_INVOKABLE void close()=0
void fireReceived(const QByteArray &pDataBlock)
virtual const QByteArray & getId() const =0
virtual bool isPairingConnection() const =0
void fireClosed(GlobalStatus::Code pCloseCode)
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17