MythTV  master
satiprtcppacket.h
Go to the documentation of this file.
1 #ifndef SATIPRTCPPACKET_H
2 #define SATIPRTCPPACKET_H
3 
4 // Qt includes
5 #include <QString>
6 #include <QIODevice>
7 #include <QDataStream>
8 
9 // MythTV includes
11 
12 static constexpr uint8_t RTCP_TYPE_APP { 204 };
13 
15 {
16  public:
17  explicit SatIPRTCPPacket(QByteArray &data);
18 
19  bool IsValid() const { return m_satipData.length() > 0; };
20  QString Data() const { return m_satipData; };
21 
22  private:
23  void parse();
24 
25  private:
26  QByteArray m_data;
27  QString m_satipData;
28 };
29 
30 #endif // SATIPRTCPPACKET_H
RTCP_TYPE_APP
static constexpr uint8_t RTCP_TYPE_APP
Definition: satiprtcppacket.h:12
SatIPRTCPPacket::SatIPRTCPPacket
SatIPRTCPPacket(QByteArray &data)
Definition: satiprtcppacket.cpp:3
SatIPRTCPPacket::m_satipData
QString m_satipData
Definition: satiprtcppacket.h:27
mythlogging.h
SatIPRTCPPacket::m_data
QByteArray m_data
Definition: satiprtcppacket.h:26
SatIPRTCPPacket::parse
void parse()
Definition: satiprtcppacket.cpp:9
SatIPRTCPPacket::IsValid
bool IsValid() const
Definition: satiprtcppacket.h:19
SatIPRTCPPacket
Definition: satiprtcppacket.h:14
SatIPRTCPPacket::Data
QString Data() const
Definition: satiprtcppacket.h:20