QXmppMessageRetracted Class
The QXmppMessageRetracted class represents a retracted-message tombstone as defined by XEP-0424: Message Retraction. More...
| Header: | #include <QXmppMessageRetraction.h> |
| Since: | QXmpp 1.17 |
- List of all members, including inherited members
- QXmppMessageRetracted is part of Stanzas.
Public Functions
| QXmppMessageRetracted() | |
| QString | by() const |
| const std::optional<QXmppMessageModeration> & | moderation() const |
| void | setBy(const QString &by) |
| void | setModeration(const std::optional<QXmppMessageModeration> &moderation) |
| void | setStamp(const QDateTime &stamp) |
| QDateTime | stamp() const |
Detailed Description
Archiving services (XEP-0313: Message Archive Management) replace the body of a retracted message with a <retracted/> tombstone. It records when the message was retracted and, for XEP-0425: Moderated Message Retraction, by whom.
Member Function Documentation
[noexcept default] QXmppMessageRetracted::QXmppMessageRetracted()
Default-constructs an instance of QXmppMessageRetracted.
QString QXmppMessageRetracted::by() const
Returns the optional JID of the entity that retracted the message.
See also setBy().
const std::optional<QXmppMessageModeration> &QXmppMessageRetracted::moderation() const
Returns the moderation information, set only for XEP-0425: Moderated Message Retraction tombstones.
See also setModeration().
void QXmppMessageRetracted::setBy(const QString &by)
Sets the optional JID by of the entity that retracted the message.
See also by().
void QXmppMessageRetracted::setModeration(const std::optional<QXmppMessageModeration> &moderation)
Sets the moderation information for a XEP-0425: Moderated Message Retraction tombstone.
See also moderation().
void QXmppMessageRetracted::setStamp(const QDateTime &stamp)
Sets the timestamp stamp at which the message was retracted.
See also stamp().
QDateTime QXmppMessageRetracted::stamp() const
Returns the timestamp at which the message was retracted.
See also setStamp().