QXmppMessageReaction Class
The QXmppMessageReaction class represents a reaction to a message in the form of emojis as specified by XEP-0444: Message Reactions. More...
| Header: | #include <QXmppMessageReaction.h> |
| Since: | QXmpp 1.5 |
Public Functions
| QXmppMessageReaction() | |
| QList<QString> | emojis() const |
| QString | messageId() const |
| void | setEmojis(const QList<QString> &emojis) |
| void | setMessageId(const QString &messageId) |
Static Public Members
| bool | isMessageReaction(const QDomElement &element) |
Detailed Description
Member Function Documentation
QXmppMessageReaction::QXmppMessageReaction()
Constructs a message reaction.
QList<QString> QXmppMessageReaction::emojis() const
Returns the emojis in reaction to a message.
See also setEmojis().
[static] bool QXmppMessageReaction::isMessageReaction(const QDomElement &element)
Determines whether the given DOM element is a message reaction element.
Returns true if element is a message reaction element, otherwise false.
QString QXmppMessageReaction::messageId() const
Returns the ID of the message for that the reaction is sent.
For a group chat message, QXmppMessage::stanzaId() is used.
For other message types, QXmppMessage::originId() is used. If that is not available, QXmppMessage::id() is used.
See also setMessageId().
void QXmppMessageReaction::setEmojis(const QList<QString> &emojis)
Sets the emojis in reaction to a message.
Each reaction should only consist of unicode codepoints that can be displayed as a single emoji. Duplicates are not allowed.
See also emojis().
void QXmppMessageReaction::setMessageId(const QString &messageId)
Sets the ID of the message for that the reaction is sent to messageId.
For a group chat message, QXmppMessage::stanzaId() must be used. If there is no such ID, a message reaction must not be sent.
For other message types, QXmppMessage::originId() should be used. If that is not available, QXmppMessage::id() should be used.
See also messageId().