File indexing completed on 2024-12-22 04:28:16
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "customemoji.h" 0008 #include "emoticonunicodeutils.h" 0009 0010 using namespace TextEmoticonsCore; 0011 CustomEmoji::CustomEmoji() 0012 { 0013 } 0014 0015 QString CustomEmoji::identifier() const 0016 { 0017 return mIdentifier; 0018 } 0019 0020 void CustomEmoji::setIdentifier(const QString &newIdentifier) 0021 { 0022 mIdentifier = newIdentifier; 0023 } 0024 0025 QString CustomEmoji::category() const 0026 { 0027 return EmoticonUnicodeUtils::customIdentifier(); 0028 } 0029 0030 bool CustomEmoji::isAnimatedEmoji() const 0031 { 0032 return mIsAnimatedEmoji; 0033 } 0034 0035 void CustomEmoji::setIsAnimatedEmoji(bool newIsAnimatedEmoji) 0036 { 0037 mIsAnimatedEmoji = newIsAnimatedEmoji; 0038 } 0039 0040 QDebug operator<<(QDebug d, const CustomEmoji &t) 0041 { 0042 d << "Identifier " << t.identifier(); 0043 d << "Is animated " << t.isAnimatedEmoji(); 0044 d << "category " << t.category(); 0045 return d; 0046 } 0047 0048 #include "moc_customemoji.cpp"