QXmppPubSubIq Class

Header: #include <QXmppPubSubIq>
Since: QXmpp 1.5
Inherits: QXmppIq

Public Functions

QList<QXmppPubSubItem> items() const
QString queryJid() const
QString queryNode() const
QXmppPubSubIq::QueryType queryType() const
void setItems(const QList<QXmppPubSubItem> &items)
void setQueryJid(const QString &queryJid)
void setQueryNode(const QString &queryNode)
void setQueryType(QXmppPubSubIq::QueryType queryType)
void setSubscriptionId(const QString &subscriptionId)
QString subscriptionId() const

Static Public Members

bool isPubSubIq(const QDomElement &element)

Detailed Description

The QXmppPubSubIq class represents an IQ used for the publish-subscribe mechanisms defined by XEP-0060: Publish-Subscribe.

Member Function Documentation

[static] bool QXmppPubSubIq::isPubSubIq(const QDomElement &element)

Returns true, if the element element is a valid PubSub IQ stanza. The payload of the &lt;item/&gt; is also checked.

QList<QXmppPubSubItem> QXmppPubSubIq::items() const

Returns the IQ's items.

See also setItems().

QString QXmppPubSubIq::queryJid() const

Returns the JID being queried.

See also setQueryJid().

QString QXmppPubSubIq::queryNode() const

Returns the node being queried.

See also setQueryNode().

QXmppPubSubIq::QueryType QXmppPubSubIq::queryType() const

Returns the PubSub queryType for this IQ.

See also setQueryType().

void QXmppPubSubIq::setItems(const QList<QXmppPubSubItem> &items)

Sets the IQ's items.

See also items().

void QXmppPubSubIq::setQueryJid(const QString &queryJid)

Sets the JID being queried to queryJid.

See also queryJid().

void QXmppPubSubIq::setQueryNode(const QString &queryNode)

Sets the node being queried to queryNode.

See also queryNode().

void QXmppPubSubIq::setQueryType(QXmppPubSubIq::QueryType queryType)

Sets the PubSub query type for this IQ to queryType.

See also queryType().

void QXmppPubSubIq::setSubscriptionId(const QString &subscriptionId)

Sets the subscription ID to subscriptionId.

See also subscriptionId().

QString QXmppPubSubIq::subscriptionId() const

Returns the subscription ID.

See also setSubscriptionId().