AusweisApp2
 Alle Klassen Namensbereiche Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Propertys Freundbeziehungen Makrodefinitionen
BluetoothMessageParser.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "BluetoothMessage.h"
10 
11 namespace governikus
12 {
13 
15 {
16  private:
17  QVector<BluetoothMessage::Ptr> mMessages;
18  QByteArray mRemainingBytes;
19 
20  inline ushort getParamLength(uchar pHigh, uchar pLow) const;
21  void parse();
22  bool parseParameter(QSharedPointer<BluetoothMessage> pMessage, int pParamCount);
23 
24  QSharedPointer<BluetoothMessage> createMessage(BluetoothMsgId pMsgId);
25  QSharedPointer<BluetoothMessageParameter> createMessageParameter(BluetoothParamId pParamId, const QByteArray& pValue);
26 
27  public:
28  BluetoothMessageParser(const QByteArray& pData);
29  virtual ~BluetoothMessageParser();
30 
31  const QVector<BluetoothMessage::Ptr>& getMessages() const;
32  const QByteArray& getRemainingBytes() const;
33 };
34 
35 } /* namespace governikus */
Definition: BluetoothMessageParser.h:14
virtual ~BluetoothMessageParser()
Definition: BluetoothMessageParser.cpp:40
const QByteArray & getRemainingBytes() const
Definition: BluetoothMessageParser.cpp:118
const QVector< BluetoothMessage::Ptr > & getMessages() const
Definition: BluetoothMessageParser.cpp:112
BluetoothMessageParser(const QByteArray &pData)
Definition: BluetoothMessageParser.cpp:32