diff options
Diffstat (limited to 'src/QXmppBindIq.cpp')
| -rw-r--r-- | src/QXmppBindIq.cpp | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/src/QXmppBindIq.cpp b/src/QXmppBindIq.cpp index 759e9cbf..e3035904 100644 --- a/src/QXmppBindIq.cpp +++ b/src/QXmppBindIq.cpp @@ -30,33 +30,38 @@ #include "QXmppUtils.h" #include "QXmppConstants.h" -QXmppBindIq::QXmppBindIq() -{ -} +/// Returns the bound JID. +/// -QXmppBindIq::QXmppBindIq(QXmppIq::Type type) - : QXmppIq(type) +QString QXmppBindIq::jid() const { + return m_jid; } -QString QXmppBindIq::jid() const +/// Sets the bound JID. +/// +/// \param jid + +void QXmppBindIq::setJid(const QString& jid) { - return m_jid; + m_jid = jid; } +/// Returns the requested resource. +/// + QString QXmppBindIq::resource() const { return m_resource; } -void QXmppBindIq::setJid(const QString& str) -{ - m_jid = str; -} +/// Sets the requested resource. +/// +/// \param resource -void QXmppBindIq::setResource(const QString& str) +void QXmppBindIq::setResource(const QString& resource) { - m_resource = str; + m_resource = resource; } bool QXmppBindIq::isBindIq(const QDomElement &element) |
