AusweisApp
Lade ...
Suche ...
Keine Treffer
DataChannel.h
gehe zur Dokumentation dieser Datei
1
10#pragma once
11
12#include "GlobalStatus.h"
13
14#include <QByteArray>
15#include <QObject>
16
17namespace governikus
18{
20 : public QObject
21{
23
24 public:
25 DataChannel() = default;
26 ~DataChannel() override;
27
28 Q_INVOKABLE virtual void send(const QByteArray& pDataBlock) = 0;
29 Q_INVOKABLE virtual void close() = 0;
30 [[nodiscard]] virtual bool isPairingConnection() const = 0;
31 [[nodiscard]] virtual const QString& getId() const = 0;
32
36};
37
38} // namespace governikus
Definition DataChannel.h:21
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
virtual bool isPairingConnection() const =0
void fireClosed(GlobalStatus::Code pCloseCode)
Code
Definition GlobalStatus.h:30
Implementation of GeneralAuthenticate response APDUs.
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:114