KTextAddons

emojimodelmanager.h
1/*
2 SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#pragma once
7
8#include "textemoticonscore_export.h"
9#include <QObject>
10#include <memory>
11namespace TextEmoticonsCore
12{
13class EmojiModel;
14class CustomEmojiIconManager;
15/**
16 * @brief The EmojiModelManager class
17 * @author Laurent Montel <montel@kde.org>
18 */
19class TEXTEMOTICONSCORE_EXPORT EmojiModelManager : public QObject
20{
21 Q_OBJECT
22public:
23 explicit EmojiModelManager(QObject *parent = nullptr);
24 ~EmojiModelManager() override;
25
26 static EmojiModelManager *self();
27 [[nodiscard]] TextEmoticonsCore::EmojiModel *emojiModel() const;
28
29 [[nodiscard]] const QStringList &recentIdentifier() const;
30 void setRecentIdentifier(const QStringList &newRecentIdentifier);
31 void addIdentifier(const QString &identifier);
32
33 [[nodiscard]] TextEmoticonsCore::CustomEmojiIconManager *customEmojiIconManager() const;
34 void setCustomEmojiIconManager(TextEmoticonsCore::CustomEmojiIconManager *newCustomEmojiIconManager);
35
36 [[nodiscard]] QStringList excludeEmoticons() const;
37 void setExcludeEmoticons(const QStringList &emoticons);
38
39Q_SIGNALS:
40 void usedIdentifierChanged(const QStringList &lst);
41 void excludeEmoticonsChanged();
42
43private:
44 class EmojiModelManagerPrivate;
45 std::unique_ptr<EmojiModelManagerPrivate> const d;
46};
47}
The EmojiModelManager class.
The EmojiModel class.
Definition emojimodel.h:21
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.