QXmpp::Xml Namespace

namespace QXmpp::Xml
Header: #include <QXmppXmlElementScope.h>
Since: QXmpp 1.16

Classes

(since QXmpp 1.16) struct Attribute
(since QXmpp 1.16) class Element
(since QXmpp 1.16) class Extensions
(since QXmpp 1.16) class Registry

Types

(since QXmpp 1.16) enum class Scope { Generic, Message, Presence }
flags Scopes

Detailed Description

Contains types for generic and dynamically-registered XML extensions.

Classes

class Attribute

A single XML attribute (name-value pair). More...

class Element

A generic, recursive representation of an XML element. More...

class Extensions

A type-safe, ordered container for XML extension elements. More...

class Registry

A global registry for type-driven parsing and serialization of XML extension elements. More...

Type Documentation

[since QXmpp 1.16] enum class Xml::Scope
flags Xml::Scopes

Identifies the type of stanza a registered XML extension applies to.

Scopes are combined via QFlags. Scope::Generic is a catch-all that matches in every stanza scope, intended for application-defined extensions that do not belong to a specific stanza type.

ConstantValueDescription
QXmpp::Xml::Scope::Generic1U << 0Matches in every scope (catch-all for application extensions).
QXmpp::Xml::Scope::Message1U << 1Matches in Message stanzas.
QXmpp::Xml::Scope::Presence1U << 2Matches in Presence stanzas.

This enum was introduced in QXmpp 1.16.

The Scopes type is a typedef for QFlags<Scope>. It stores an OR combination of Scope values.