From c984459de1b0712dd1869112f418762539e1d36f Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Mon, 19 Jul 2010 15:49:17 +0000 Subject: improve code documentation --- source/QXmppJingleIq.cpp | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'source/QXmppJingleIq.cpp') diff --git a/source/QXmppJingleIq.cpp b/source/QXmppJingleIq.cpp index df1f133a..066476fe 100644 --- a/source/QXmppJingleIq.cpp +++ b/source/QXmppJingleIq.cpp @@ -535,62 +535,103 @@ QXmppJinglePayloadType::QXmppJinglePayloadType() { } +/// Returns the number of channels (e.g. 1 for mono, 2 for stereo). +/// + unsigned char QXmppJinglePayloadType::channels() const { return m_channels; } +/// Sets the number of channels (e.g. 1 for mono, 2 for stereo). +/// +/// \param channels + void QXmppJinglePayloadType::setChannels(unsigned char channels) { m_channels = channels; } +/// Returns the clockrate in Hz, i.e. the number of samples per second. +/// + unsigned int QXmppJinglePayloadType::clockrate() const { return m_clockrate; } +/// Sets the clockrate in Hz, i.e. the number of samples per second. +/// +/// \param clockrate + void QXmppJinglePayloadType::setClockrate(unsigned int clockrate) { m_clockrate = clockrate; } +/// Returns the payload type identifier. +/// + unsigned char QXmppJinglePayloadType::id() const { return m_id; } +/// Sets the payload type identifier. +/// + void QXmppJinglePayloadType::setId(unsigned char id) { Q_ASSERT(id <= 127); m_id = id; } +/// Returns the maximum packet time in milliseconds. +/// + unsigned int QXmppJinglePayloadType::maxptime() const { return m_maxptime; } +/// Sets the maximum packet type in milliseconds. +/// +/// \param maxptime + void QXmppJinglePayloadType::setMaxptime(unsigned int maxptime) { m_maxptime = maxptime; } +/// Returns the payload type name. +/// + QString QXmppJinglePayloadType::name() const { return m_name; } +/// Sets the payload type name. +/// +/// \param name + void QXmppJinglePayloadType::setName(const QString &name) { m_name = name; } +/// Returns the packet time in milliseconds (20 by default). +/// + unsigned int QXmppJinglePayloadType::ptime() const { return m_ptime ? m_ptime : 20; } +/// Sets the packet time in milliseconds (20 by default). +/// +/// \param ptime + void QXmppJinglePayloadType::setPtime(unsigned int ptime) { m_ptime = ptime; -- cgit v1.2.3