TextEmoticonsCore::UnicodeEmoticonManager Class
The UnicodeEmoticonManager class Author: Laurent Montel <montel@kde.org>. More...
| Header: | #include <TextEmoticonsCore/UnicodeEmoticonManager> |
| CMake: | find_package(KF6TextEmoticonsCore REQUIRED)target_link_libraries(mytarget PRIVATE KF6::TextEmoticonsCore) |
| Inherits: | QObject |
Public Functions
| QList<TextEmoticonsCore::EmoticonCategory> | categories() const |
| int | count() const |
| QList<TextEmoticonsCore::UnicodeEmoticon> | emojisForCategory(const QString &category) const |
| QList<TextEmoticonsCore::UnicodeEmoticon> | unicodeEmojiList() const |
| TextEmoticonsCore::UnicodeEmoticon | unicodeEmoticonForEmoji(const QString &emojiIdentifier) const |
Static Public Members
| TextEmoticonsCore::UnicodeEmoticonManager * | self(const QString &filename = {}) |
Protected Functions
| UnicodeEmoticonManager(const QString &filename = {}, QObject *parent = nullptr) | |
| virtual | ~UnicodeEmoticonManager() override |
Detailed Description
Member Function Documentation
[explicit protected] UnicodeEmoticonManager::UnicodeEmoticonManager(const QString &filename = {}, QObject *parent = nullptr)
Constructs a UnicodeEmoticonManager with optional data file filename The path to the emoticon data file (optional) parent The parent QObject
[override virtual noexcept protected] UnicodeEmoticonManager::~UnicodeEmoticonManager()
Destroys the UnicodeEmoticonManager
QList<TextEmoticonsCore::EmoticonCategory> UnicodeEmoticonManager::categories() const
Returns all available emoticon categories Returns A list of EmoticonCategory objects
int UnicodeEmoticonManager::count() const
Returns the total number of emoticons Returns The count of emoticons
QList<TextEmoticonsCore::UnicodeEmoticon> UnicodeEmoticonManager::emojisForCategory(const QString &category) const
Returns emoticons in the specified category category The category identifier Returns A list of UnicodeEmoticon objects in this category
[static] TextEmoticonsCore::UnicodeEmoticonManager *UnicodeEmoticonManager::self(const QString &filename = {})
Returns the singleton instance of UnicodeEmoticonManager filename The path to the emoticon data file (optional) Returns A pointer to the UnicodeEmoticonManager singleton
QList<TextEmoticonsCore::UnicodeEmoticon> UnicodeEmoticonManager::unicodeEmojiList() const
Returns the list of all Unicode emoticons Returns A list of UnicodeEmoticon objects
TextEmoticonsCore::UnicodeEmoticon UnicodeEmoticonManager::unicodeEmoticonForEmoji(const QString &emojiIdentifier) const
Finds the emoticon for the given emoji identifier emojiIdentifier The emoji identifier to look up Returns The UnicodeEmoticon object, or an invalid emoticon if not found