File indexing completed on 2024-06-09 04:40:32

0001 /*
0002    SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "textemoticonscore_export.h"
0010 #include "unicodeemoticon.h"
0011 #include <QList>
0012 namespace TextEmoticonsCore
0013 {
0014 /**
0015  * @brief The UnicodeEmoticonParser class
0016  * @author Laurent Montel <montel@kde.org>
0017  */
0018 class TEXTEMOTICONSCORE_EXPORT UnicodeEmoticonParser
0019 {
0020 public:
0021     UnicodeEmoticonParser();
0022     ~UnicodeEmoticonParser();
0023 
0024     [[nodiscard]] QList<UnicodeEmoticon> parse(const QJsonObject &o) const;
0025     [[nodiscard]] static int changeOrder(const QString &name);
0026 };
0027 }