From a04f3f45fe4b03ede4f1f89b7610e50714e347b6 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Fri, 12 Feb 2010 10:09:33 +0000 Subject: make it possible to attach an extension element to messages and presences --- source/QXmppStanza.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source/QXmppStanza.cpp') diff --git a/source/QXmppStanza.cpp b/source/QXmppStanza.cpp index c78aeed8..5c5fadbe 100644 --- a/source/QXmppStanza.cpp +++ b/source/QXmppStanza.cpp @@ -315,6 +315,16 @@ void QXmppStanza::setError(QXmppStanza::Error& error) m_error = error; } +QXmppElement QXmppStanza::getExtension() const +{ + return m_extension; +} + +void QXmppStanza::setExtension(const QXmppElement &extension) +{ + m_extension = extension; +} + bool QXmppStanza::isErrorStanza() { return !(m_error.getTypeStr().isEmpty() && -- cgit v1.2.3