KTextAddons

emoticoncategory.cpp
1/*
2 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "emoticoncategory.h"
8using namespace TextEmoticonsCore;
9EmoticonCategory::EmoticonCategory() = default;
10
11QString EmoticonCategory::name() const
12{
13 return mName;
14}
15
16void EmoticonCategory::setName(const QString &name)
17{
18 mName = name;
19}
20
21QString EmoticonCategory::category() const
22{
23 return mCategory;
24}
25
26void EmoticonCategory::setCategory(const QString &category)
27{
28 mCategory = category;
29}
30
31const QString &EmoticonCategory::i18nName() const
32{
33 return mI18nName;
34}
35
36void EmoticonCategory::setI18nName(const QString &newI18nName)
37{
38 mI18nName = newI18nName;
39}
40
41bool EmoticonCategory::operator<(const EmoticonCategory &other) const
42{
43 return mOrder < other.order();
44}
45
46int EmoticonCategory::order() const
47{
48 return mOrder;
49}
50
51void EmoticonCategory::setOrder(int newOrder)
52{
53 mOrder = newOrder;
54}
55
57{
58 d << "Name " << t.name();
59 d << "Category " << t.category();
60 d << "Category i18n" << t.i18nName();
61 return d;
62}
The EmoticonCategory class.
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
QString name(GameStandardAction id)
Category category(StandardShortcut id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:47:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.