From 21462f9d51e567bd72f3a86cb38423249fea4dab Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Sun, 18 Jul 2010 12:23:22 +0000 Subject: improve code documentation --- source/QXmppStanza.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'source/QXmppStanza.cpp') diff --git a/source/QXmppStanza.cpp b/source/QXmppStanza.cpp index 22f6a2e9..a311d82f 100644 --- a/source/QXmppStanza.cpp +++ b/source/QXmppStanza.cpp @@ -304,31 +304,50 @@ QXmppStanza::~QXmppStanza() { } +/// Returns the stanza's recipient JID. +/// + QString QXmppStanza::to() const { return m_to; } +/// Sets the stanza's recipient JID. +/// +/// \param to + void QXmppStanza::setTo(const QString& to) { m_to = to; } +/// Returns the stanza's sender JID. + QString QXmppStanza::from() const { return m_from; } +/// Sets the stanza's sender JID. +/// +/// \param from + void QXmppStanza::setFrom(const QString& from) { m_from = from; } +/// Returns the stanza's identifier. + QString QXmppStanza::id() const { return m_id; } +/// Sets the stanza's identifier. +/// +/// \param id + void QXmppStanza::setId(const QString& id) { m_id = id; -- cgit v1.2.3