KTextAddons

emoticoncategory.h
1/*
2 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.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 EmoticonCategory class
16 * @author Laurent Montel <montel@kde.org>
17 */
18class TEXTEMOTICONSCORE_EXPORT EmoticonCategory
19{
20public:
22 [[nodiscard]] QString name() const;
23 void setName(const QString &name);
24
25 [[nodiscard]] QString category() const;
26 void setCategory(const QString &category);
27
28 [[nodiscard]] const QString &i18nName() const;
29
30 void setI18nName(const QString &newI18nName);
31
32 [[nodiscard]] bool operator<(const EmoticonCategory &other) const;
33
34 [[nodiscard]] int order() const;
35 void setOrder(int newOrder);
36
37private:
38 QString mName;
39 QString mCategory;
40 QString mI18nName;
41 int mOrder = 20;
42};
43}
45Q_DECLARE_TYPEINFO(TextEmoticonsCore::EmoticonCategory, Q_MOVABLE_TYPE);
46TEXTEMOTICONSCORE_EXPORT QDebug operator<<(QDebug d, const TextEmoticonsCore::EmoticonCategory &t);
The EmoticonCategory class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:51:28 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.