diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2015-08-20 08:49:44 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2015-08-20 08:49:44 +0200 |
| commit | 3a51c38d120a30f717e8584a4502d3848a0e1ac5 (patch) | |
| tree | 79b7c84c7fe370e95e99ef922257a7789e1e35ef /src/base/QXmppRtcpPacket.h | |
| parent | 2b538aecb57dec32aacc27c8f23fd377b03991d4 (diff) | |
| download | qxmpp-3a51c38d120a30f717e8584a4502d3848a0e1ac5.tar.gz | |
add QXmppRtcpPacket class
Diffstat (limited to 'src/base/QXmppRtcpPacket.h')
| -rw-r--r-- | src/base/QXmppRtcpPacket.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/base/QXmppRtcpPacket.h b/src/base/QXmppRtcpPacket.h new file mode 100644 index 00000000..6ceee0fc --- /dev/null +++ b/src/base/QXmppRtcpPacket.h @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2008-2014 The QXmpp developers + * + * Author: + * Jeremy Lainé + * + * Source: + * https://github.com/qxmpp-project/qxmpp + * + * This file is a part of QXmpp library. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + */ + +#ifndef QXMPPRTCPPACKET_H +#define QXMPPRTCPPACKET_H + +#include <QSharedDataPointer> + +#include "QXmppGlobal.h" + +class QXmppRtcpPacketPrivate; + +/// \brief The QXmppRtpPacket class represents an RTCP packet. +/// + +class QXMPP_EXPORT QXmppRtcpPacket +{ +public: + QXmppRtcpPacket(); + QXmppRtcpPacket(const QXmppRtcpPacket &other); + virtual ~QXmppRtcpPacket(); + + QXmppRtcpPacket& operator=(const QXmppRtcpPacket &other); + + bool decode(const QByteArray &ba); + QByteArray encode() const; + + quint8 count() const; + void setCount(quint8 count); + + quint8 type() const; + void setType(quint8 type); + +private: + QSharedDataPointer<QXmppRtcpPacketPrivate> d; +}; + +#endif |
