AusweisApp
Lade ...
Suche ...
Keine Treffer
DataChannel.h
gehe zur Dokumentation dieser Datei
1
5#pragma once
6
7#include "GlobalStatus.h"
8
9#include <QByteArray>
10#include <QObject>
11
12namespace governikus
13{
15 : public QObject
16{
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
31};
32
33} // namespace governikus
Definition DataChannel.h:16
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)
Code
Definition GlobalStatus.h:25
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