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
41{
42 d << "Identifier " << t.identifier();
43 d << "Is animated " << t.isAnimatedEmoji();
44 d << "category " << t.category();
45 return d;
46}
47
48#include "moc_customemoji.cpp"
The CustomEmoji class.
Definition customemoji.h:19
QDebug operator<<(QDebug dbg, const PerceptualColor::MultiSpinBoxSection &value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.