Loading...
Searching...
No Matches
QXmppMessageReaction.h
// SPDX-FileCopyrightText: 2022 Melvin Keskin <melvo@olomono.de>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPMESSAGEREACTION_H
#define QXMPPMESSAGEREACTION_H
#include "QXmppGlobal.h"
#include <QSharedDataPointer>
class QDomElement;
class QXmlStreamWriter;
class QXmppMessageReactionPrivate;
class QXMPP_EXPORT QXmppMessageReaction
{
public:
QXmppMessageReaction();
QXMPP_PRIVATE_DECLARE_RULE_OF_SIX(QXmppMessageReaction)
QString messageId() const;
void setMessageId(const QString &messageId);
QVector<QString> emojis() const;
void setEmojis(const QVector<QString> &emojis);
void parse(const QDomElement &element);
void toXml(QXmlStreamWriter *writer) const;
static bool isMessageReaction(const QDomElement &element);
private:
QSharedDataPointer<QXmppMessageReactionPrivate> d;
};
#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