TextEmoticonsCore::UnicodeEmoticon Class
The UnicodeEmoticon class Author: Laurent Montel <montel@kde.org>. More...
| Header: | #include <TextEmoticonsCore/UnicodeEmoticon> |
| CMake: | find_package(KF6TextEmoticonsCore REQUIRED)target_link_libraries(mytarget PRIVATE KF6::TextEmoticonsCore) |
Public Functions
| UnicodeEmoticon() | |
| QStringList | aliases() const |
| QString | category() const |
| bool | diversityChildren() const |
| bool | hasEmoji(const QString &identifier) const |
| QString | identifier() const |
| bool | isValid() const |
| QString | key() const |
| int | order() const |
| void | setAliases(const QStringList &aliases) |
| void | setCategory(const QString &category) |
| void | setDiversityChildren(bool b) |
| void | setIdentifier(const QString &name) |
| void | setKey(const QString &key) |
| void | setOrder(int order) |
| void | setUnicode(const QString &unicode) |
| QString | unicode() const |
| QString | unicodeDisplay() const |
| bool | operator==(const TextEmoticonsCore::UnicodeEmoticon &other) const |
Detailed Description
Member Function Documentation
UnicodeEmoticon::UnicodeEmoticon()
Constructs an empty UnicodeEmoticon
QStringList UnicodeEmoticon::aliases() const
Returns the list of aliases for this emoticon Returns The list of alternative identifiers
See also setAliases().
QString UnicodeEmoticon::category() const
Returns the emoticon category Returns The category string
See also setCategory().
bool UnicodeEmoticon::diversityChildren() const
Checks if this emoticon has diversity/skin tone variants Returns true if the emoticon has diversity children
See also setDiversityChildren().
bool UnicodeEmoticon::hasEmoji(const QString &identifier) const
Checks if the emoticon matches the given identifier or alias identifier The identifier to check Returns true if the emoticon matches this identifier or any alias
QString UnicodeEmoticon::identifier() const
Returns the emoticon identifier Returns The identifier string
See also setIdentifier().
bool UnicodeEmoticon::isValid() const
Checks if the emoticon is valid Returns true if the emoticon has required data, false otherwise
QString UnicodeEmoticon::key() const
Returns the key for the emoticon Returns The key string
See also setKey().
int UnicodeEmoticon::order() const
Returns the sort order of the emoticon Returns The order value
See also setOrder().
void UnicodeEmoticon::setAliases(const QStringList &aliases)
Sets the list of aliases for this emoticon aliases The new list of aliases
See also aliases().
void UnicodeEmoticon::setCategory(const QString &category)
Sets the emoticon category category The new category
See also category().
void UnicodeEmoticon::setDiversityChildren(bool b)
Sets whether this emoticon has diversity/skin tone variants b true if the emoticon has diversity children
See also diversityChildren().
void UnicodeEmoticon::setIdentifier(const QString &name)
Sets the emoticon identifier name The new identifier
See also identifier().
void UnicodeEmoticon::setKey(const QString &key)
Sets the key for the emoticon key The new key
See also key().
void UnicodeEmoticon::setOrder(int order)
Sets the sort order of the emoticon order The new order value
See also order().
void UnicodeEmoticon::setUnicode(const QString &unicode)
Sets the Unicode representation of the emoticon unicode The new Unicode string
See also unicode().
QString UnicodeEmoticon::unicode() const
Returns the Unicode representation of the emoticon Returns The Unicode string
See also setUnicode().
QString UnicodeEmoticon::unicodeDisplay() const
Returns a display-friendly representation of the Unicode emoticon Returns The display string
bool UnicodeEmoticon::operator==(const TextEmoticonsCore::UnicodeEmoticon &other) const
Compares this emoticon with another for equality other The other emoticon to compare Returns true if the emoticons are equal