diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2015-08-20 13:26:19 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2015-08-24 08:32:00 +0200 |
| commit | 1c28cc6f1cca7c1cd941e6402027be2ee2c8c42b (patch) | |
| tree | 0a1f058bf4e4b5f88ae11d672ccf9666bbfea6e8 /src/base/QXmppRtpPacket.h | |
| parent | f87d817c2f3390d80a038007dcfaf588375319dd (diff) | |
| download | qxmpp-1c28cc6f1cca7c1cd941e6402027be2ee2c8c42b.tar.gz | |
use PIMPL + accessors for QXmppRtpPacket
Diffstat (limited to 'src/base/QXmppRtpPacket.h')
| -rw-r--r-- | src/base/QXmppRtpPacket.h | 40 |
1 files changed, 26 insertions, 14 deletions
diff --git a/src/base/QXmppRtpPacket.h b/src/base/QXmppRtpPacket.h index d4ef590a..519769b6 100644 --- a/src/base/QXmppRtpPacket.h +++ b/src/base/QXmppRtpPacket.h @@ -37,26 +37,38 @@ class QXMPP_EXPORT QXmppRtpPacket { public: QXmppRtpPacket(); + QXmppRtpPacket(const QXmppRtpPacket &other); ~QXmppRtpPacket(); + QXmppRtpPacket& operator=(const QXmppRtpPacket &other); + bool decode(const QByteArray &ba); QByteArray encode() const; QString toString() const; - /// Marker flag. - bool marker; - /// Payload type. - quint8 type; - /// Synchronization source. - quint32 ssrc; - /// Contributing sources. - QList<quint32> csrc; - /// Sequence number. - quint16 sequence; - /// Timestamp. - quint32 stamp; - /// Raw payload data. - QByteArray payload; + QList<quint32> csrc() const; + void setCsrc(const QList<quint32> &csrc); + + bool marker() const; + void setMarker(bool marker); + + QByteArray payload() const; + void setPayload(const QByteArray &payload); + + quint16 sequence() const; + void setSequence(quint16 sequence); + + quint32 ssrc() const; + void setSsrc(quint32 ssrc); + + quint32 stamp() const; + void setStamp(quint32 stamp); + + quint8 type() const; + void setType(quint8 type); + +private: + QSharedDataPointer<QXmppRtpPacketPrivate> d; }; #endif |
