KTextAddons

customemoji.cpp
1/*
2 SPDX-FileCopyrightText: 2023-2025 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "customemoji.h"
8#include "emoticonunicodeutils.h"
9
10using namespace TextEmoticonsCore;
11CustomEmoji::CustomEmoji() = default;
12
13QString CustomEmoji::identifier() const
14{
15 return mIdentifier;
16}
17
18void CustomEmoji::setIdentifier(const QString &newIdentifier)
19{
20 mIdentifier = newIdentifier;
21}
22
23QString CustomEmoji::category() const
24{
25 return EmoticonUnicodeUtils::customIdentifier();
26}
27
28bool CustomEmoji::isAnimatedEmoji() const
29{
30 return mIsAnimatedEmoji;
31}
32
33void CustomEmoji::setIsAnimatedEmoji(bool newIsAnimatedEmoji)
34{
35 mIsAnimatedEmoji = newIsAnimatedEmoji;
36}
37
38QString CustomEmoji::fileName() const
39{
40 return mFileName;
41}
42
43void CustomEmoji::setFileName(const QString &newFileName)
44{
45 mFileName = newFileName;
46}
47
48QDebug operator<<(QDebug d, const CustomEmoji &t)
49{
50 d << "Identifier " << t.identifier();
51 d << "Is animated " << t.isAnimatedEmoji();
52 d << "category " << t.category();
53 return d;
54}
55
56#include "moc_customemoji.cpp"
The CustomEmoji class.
Definition customemoji.h:19
KTEXTEDITOR_EXPORT QDebug operator<<(QDebug s, const MovingCursor &cursor)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.