KTextAddons

customemoji.cpp
1/*
2 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.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()
12{
13}
14
15QString CustomEmoji::identifier() const
16{
17 return mIdentifier;
18}
19
20void CustomEmoji::setIdentifier(const QString &newIdentifier)
21{
22 mIdentifier = newIdentifier;
23}
24
25QString CustomEmoji::category() const
26{
27 return EmoticonUnicodeUtils::customIdentifier();
28}
29
30bool CustomEmoji::isAnimatedEmoji() const
31{
32 return mIsAnimatedEmoji;
33}
34
35void CustomEmoji::setIsAnimatedEmoji(bool newIsAnimatedEmoji)
36{
37 mIsAnimatedEmoji = newIsAnimatedEmoji;
38}
39
40QString CustomEmoji::fileName() const
41{
42 return mFileName;
43}
44
45void CustomEmoji::setFileName(const QString &newFileName)
46{
47 mFileName = newFileName;
48}
49
51{
52 d << "Identifier " << t.identifier();
53 d << "Is animated " << t.isAnimatedEmoji();
54 d << "category " << t.category();
55 return d;
56}
57
58#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-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:48:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.