QXmppMessageModeration Class

The QXmppMessageModeration class represents the moderation information of a moderated message retraction or tombstone as defined by XEP-0425: Moderated Message Retraction. More...

Header: #include <QXmppMessageRetraction.h>
Since: QXmpp 1.17

Public Functions

QXmppMessageModeration()
QString moderatorJid() const
QString moderatorOccupantId() const
QString reason() const
void setModeratorJid(const QString &jid)
void setModeratorOccupantId(const QString &id)
void setReason(const QString &reason)

Detailed Description

This is the <moderated/> element (and its accompanying <reason/>) that a XEP-0045: Multi-User Chat service adds when a moderator retracts another occupant's message.

Member Function Documentation

[constexpr noexcept default] QXmppMessageModeration::QXmppMessageModeration()

Default-constructs an instance of QXmppMessageModeration.

QString QXmppMessageModeration::moderatorJid() const

Returns the full JID (room@service/nick) of the moderator that performed the retraction.

See also setModeratorJid().

QString QXmppMessageModeration::moderatorOccupantId() const

Returns the XEP-0421: Occupant identifier of the moderator (semi-anonymous rooms).

See also setModeratorOccupantId().

QString QXmppMessageModeration::reason() const

Returns the optional human-readable reason for the moderation.

See also setReason().

void QXmppMessageModeration::setModeratorJid(const QString &jid)

Sets the full JID (room@service/nick) of the moderator that performed the retraction to jid.

See also moderatorJid().

void QXmppMessageModeration::setModeratorOccupantId(const QString &id)

Sets the XEP-0421: Occupant identifier of the moderator to id.

See also moderatorOccupantId().

void QXmppMessageModeration::setReason(const QString &reason)

Sets the optional human-readable reason for the moderation.

See also reason().