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
32 [[nodiscard]] QString fileName() const;
33 void setFileName(const QString &newFileName);
34
35private:
36 QString mIdentifier;
37 QString mFileName;
38 bool mIsAnimatedEmoji = false;
39};
40}
41Q_DECLARE_METATYPE(TextEmoticonsCore::CustomEmoji)
42Q_DECLARE_TYPEINFO(TextEmoticonsCore::CustomEmoji, Q_MOVABLE_TYPE);
43TEXTEMOTICONSCORE_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 Fri Dec 20 2024 11:49:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.