aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppJingleIq.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-07-19 15:49:17 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-07-19 15:49:17 +0000
commitc984459de1b0712dd1869112f418762539e1d36f (patch)
tree6b5aa816be585ac6486eeba20cabf586da3fc1ce /source/QXmppJingleIq.cpp
parent9d32f3dabc8f5f96a9f89eb44b8c42956ac3aabf (diff)
downloadqxmpp-c984459de1b0712dd1869112f418762539e1d36f.tar.gz
improve code documentation
Diffstat (limited to 'source/QXmppJingleIq.cpp')
-rw-r--r--source/QXmppJingleIq.cpp41
1 files changed, 41 insertions, 0 deletions
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;