13#include <QSharedPointer>
25 const QSharedPointer<DataChannel> mDataChannel;
27 QString mContextHandle;
29 virtual bool processContext(IfdMessageType pMsgType,
const QJsonObject& pMsgObject) = 0;
32 void onReceived(
const QByteArray& pDataBlock);
33 void onClosed(GlobalStatus::Code pCloseCode);
44 [[nodiscard]]
virtual QByteArray
getId()
const;
50 Q_INVOKABLE
virtual void send(
const QSharedPointer<const IfdMessage>& pMessage);
53 void fireReceived(IfdMessageType pMessageType,
const QJsonObject& pJsonObject,
const QByteArray& pId);
54 void fireClosed(GlobalStatus::Code pCloseCode,
const QByteArray& pId);
void fireReceived(IfdMessageType pMessageType, const QJsonObject &pJsonObject, const QByteArray &pId)
void setVersion(IfdVersion::Version pVersion)
Definition IfdDispatcher.cpp:85
virtual QByteArray getId() const
Definition IfdDispatcher.cpp:102
IfdDispatcher(IfdVersion::Version pVersion, const QSharedPointer< DataChannel > &pDataChannel)
Definition IfdDispatcher.cpp:20
void fireClosed(GlobalStatus::Code pCloseCode, const QByteArray &pId)
virtual bool isPairingConnection() const
Definition IfdDispatcher.cpp:91
IfdVersion::Version getVersion() const
Definition IfdDispatcher.cpp:119
virtual Q_INVOKABLE void send(const QSharedPointer< const IfdMessage > &pMessage)
Definition IfdDispatcher.cpp:134
virtual const QString & getContextHandle() const
Definition IfdDispatcher.cpp:113
void saveRemoteNameInSettings(const QString &pName) const
Definition IfdDispatcher.cpp:125
~IfdDispatcher() override
Definition IfdDispatcher.cpp:33
void setContextHandle(const QString &pHandle)
Definition IfdDispatcher.cpp:79
void close()
Definition IfdDispatcher.cpp:150
Version
Definition IfdVersion.h:17
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17