QXmpp Version: 1.10.0
QXmppMessageReaction.h
1// SPDX-FileCopyrightText: 2022 Melvin Keskin <melvo@olomono.de>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPMESSAGEREACTION_H
6#define QXMPPMESSAGEREACTION_H
7
8#include "QXmppGlobal.h"
9
10#include <QSharedDataPointer>
11
12class QDomElement;
13class QXmlStreamWriter;
14class QXmppMessageReactionPrivate;
15
16class QXMPP_EXPORT QXmppMessageReaction
17{
18public:
20
21 QXMPP_PRIVATE_DECLARE_RULE_OF_SIX(QXmppMessageReaction)
22
23 QString messageId() const;
24 void setMessageId(const QString &messageId);
25
26 QVector<QString> emojis() const;
27 void setEmojis(const QVector<QString> &emojis);
28
30 void parse(const QDomElement &element);
31 void toXml(QXmlStreamWriter *writer) const;
33
34 static bool isMessageReaction(const QDomElement &element);
35
36private:
37 QSharedDataPointer<QXmppMessageReactionPrivate> d;
38};
39
40#endif // QXMPPMESSAGEREACTION_H
The QXmppMessageReaction class represents a reaction to a message in the form of emojis as specified ...
Definition: QXmppMessageReaction.h:17