KTextAddons

customemoji.h
1/*
2 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "textemoticonscore_export.h"
10#include <QDebug>
11#include <QString>
12namespace TextEmoticonsCore
13{
14/**
15 * @brief The CustomEmoji class
16 * @author Laurent Montel <montel@kde.org>
17 */
18class TEXTEMOTICONSCORE_EXPORT CustomEmoji
19{
20 Q_GADGET
21public:
23
24 [[nodiscard]] QString identifier() const;
25 void setIdentifier(const QString &newIdentifier);
26
27 [[nodiscard]] QString category() const;
28
29 [[nodiscard]] bool isAnimatedEmoji() const;
30 void setIsAnimatedEmoji(bool newIsAnimatedEmoji);
31
32private:
33 QString mIdentifier;
34 bool mIsAnimatedEmoji = false;
35};
36}
37Q_DECLARE_METATYPE(TextEmoticonsCore::CustomEmoji)
38Q_DECLARE_TYPEINFO(TextEmoticonsCore::CustomEmoji, Q_MOVABLE_TYPE);
39TEXTEMOTICONSCORE_EXPORT QDebug operator<<(QDebug d, const TextEmoticonsCore::CustomEmoji &t);
The CustomEmoji class.
Definition customemoji.h:19
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.