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
void setModeratorJid(const QString &jid)
void setModeratorOccupantId(const QString &id)

Detailed Description

This is the <moderated/> element that a XEP-0045: Multi-User Chat service adds when a moderator retracts another occupant's message. The reason of the moderation is available via QXmppMessageRetraction::reason() and QXmppMessageRetracted::reason().

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().

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().