QXmpp Version: 1.5.6
|
The QXmppMessageReaction class represents a reaction to a message in the form of emojis as specified by XEP-0444: Message Reactions. More...
Public Member Functions | |
QXmppMessageReaction () | |
QString | messageId () const |
void | setMessageId (const QString &messageId) |
QVector< QString > | emojis () const |
void | setEmojis (const QVector< QString > &emojis) |
Static Public Member Functions | |
static bool | isMessageReaction (const QDomElement &element) |
The QXmppMessageReaction class represents a reaction to a message in the form of emojis as specified by XEP-0444: Message Reactions.
QXmppMessageReaction::QXmppMessageReaction | ( | ) |
Constructs a message reaction.
QVector< QString > QXmppMessageReaction::emojis | ( | ) | const |
Returns the emojis in reaction to a message.
|
static |
Determines whether the given DOM element is a message reaction element.
element | DOM element being checked |
QString QXmppMessageReaction::messageId | ( | ) | const |
Returns the ID of the message for that the reaction is sent.
For a group chat message,
is used.
For other message types,
is used. If that is not available,
is used.
void QXmppMessageReaction::setEmojis | ( | const QVector< 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.
emojis | emoji reactions |
void QXmppMessageReaction::setMessageId | ( | const QString & | messageId | ) |
Sets the ID of the message for that the reaction is sent.
For a group chat message,
must be used. If there is no such ID, a message reaction must not be sent.
For other message types,
should be used. If that is not available,
should be used.
messageId | message's ID |