AusweisApp2
 Alle Klassen Namensbereiche Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Propertys Freundbeziehungen Makrodefinitionen
BluetoothMessage.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
10 
11 #include <QSharedPointer>
12 #include <QVector>
13 
14 class test_BluetoothMessageParser;
15 
16 namespace governikus
17 {
18 
20 {
21  public:
22  using Ptr = QSharedPointer<const BluetoothMessage>;
23 
24  private:
25  friend class ::test_BluetoothMessageParser;
26  BluetoothMsgId mMsgId;
27  QMap<BluetoothParamId, BluetoothMessageParameter::Ptr> mMessageParameter;
28 
29  protected:
30  BluetoothMessageParameter::Ptr getParameter(BluetoothParamId pId) const;
31 
32  public:
33  BluetoothMessage(BluetoothMsgId pMsgId);
34  virtual ~BluetoothMessage();
35 
36  void addParameter(BluetoothMessageParameter::Ptr pMessageParameter);
37  template<typename T> void copyParameter(const T& pMessageParameter)
38  {
39  addParameter(BluetoothMessageParameter::Ptr(new T(pMessageParameter)));
40  }
41 
42 
43  BluetoothMsgId getBluetoothMsgId() const;
44  QByteArray toData() const;
45  QString toString() const;
46 };
47 
48 } /* namespace governikus */
49 
50 
51 QDebug operator<<(QDebug pDbg, const governikus::BluetoothMessage& pMsg);
virtual ~BluetoothMessage()
Definition: BluetoothMessage.cpp:34
BluetoothMessageParameter::Ptr getParameter(BluetoothParamId pId) const
Definition: BluetoothMessage.cpp:39
QSharedPointer< const BluetoothMessage > Ptr
Definition: BluetoothMessage.h:22
BluetoothMsgId getBluetoothMsgId() const
Definition: BluetoothMessage.cpp:58
BluetoothMessage(BluetoothMsgId pMsgId)
Definition: BluetoothMessage.cpp:27
QByteArray toData() const
Definition: BluetoothMessage.cpp:64
QDebug operator<<(QDebug pDbg, const governikus::CVCertificate &pCvc)
Definition: CVCertificate.cpp:146
#define T(v)
Definition: http_parser.cpp:234
QString toString() const
Definition: BluetoothMessage.cpp:87
void copyParameter(const T &pMessageParameter)
Definition: BluetoothMessage.h:37
QSharedPointer< const BluetoothMessageParameter > Ptr
Definition: BluetoothMessageParameter.h:53
void addParameter(BluetoothMessageParameter::Ptr pMessageParameter)
Definition: BluetoothMessage.cpp:45
Definition: BluetoothMessage.h:19