QXmpp: QXmppMessageReaction.h Source File

QXmpp Version: 1.14.3

Loading...
Searching...
No Matches
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
16 class QXMPP_EXPORT QXmppMessageReaction
17{
18public:
19 QXmppMessageReaction();
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
QXmppMessageReaction::QXmppMessageReaction
QXmppMessageReaction()
Definition QXmppMessageReaction.cpp:37
QXmppMessageReaction::setEmojis
void setEmojis(const QVector< QString > &emojis)
Definition QXmppMessageReaction.cpp:93
QXmppMessageReaction::messageId
QString messageId() const
Definition QXmppMessageReaction.cpp:54
QXmppMessageReaction::emojis
QVector< QString > emojis() const
Definition QXmppMessageReaction.cpp:80
QXmppMessageReaction::isMessageReaction
static bool isMessageReaction(const QDomElement &element)
Definition QXmppMessageReaction.cpp:126
QXmppMessageReaction::setMessageId
void setMessageId(const QString &messageId)
Definition QXmppMessageReaction.cpp:70