QXmppNonza Class

Header: #include <QXmppNonza>
Since: QXmpp 1.5

Public Functions

(since QXmpp 1.0 (moved from QXmppStanza in 1.5)) virtual bool isXmppStanza() const
virtual void parse(const QDomElement &element) = 0
virtual void toXml(QXmlStreamWriter *writer) const = 0

Detailed Description

Abstract class for content that can be parsed from DOM and serialized to XML.

If you want to implement a XMPP stanza (IQ, message or presence) then you should use QXmppStanza. Directly inheriting from this class is useful for other elements like stream management elements in the XML stream.

Member Function Documentation

[virtual, since QXmpp 1.0 (moved from QXmppStanza in 1.5)] bool QXmppNonza::isXmppStanza() const

Returns whether the QXmppStanza is a stanza in the XMPP sense (i. e. a message, iq or presence).

This function was introduced in QXmpp 1.0 (moved from QXmppStanza in 1.5).

[pure virtual] void QXmppNonza::parse(const QDomElement &element)

Parses the object from a DOM element element.

[pure virtual] void QXmppNonza::toXml(QXmlStreamWriter *writer) const

Serializes the object to XML using the QXmlStreamWriter writer.