File indexing completed on 2024-05-12 11:48:04
0001 /* 0002 SPDX-FileCopyrightText: 2014 Daniel Vrátil <dvratil@redhat.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KTEXTTOHTMLEMOTICONSINTERFACE_H 0008 #define KTEXTTOHTMLEMOTICONSINTERFACE_H 0009 0010 #include <QMetaType> 0011 #include <QStringList> 0012 0013 /** 0014 * @internal 0015 * Used internally by KTextToHTML, implemented by plugin, for dynamic dependency on KEmoticons 0016 */ 0017 class KTextToHTMLEmoticonsInterface 0018 { 0019 public: 0020 KTextToHTMLEmoticonsInterface() 0021 { 0022 } 0023 virtual ~KTextToHTMLEmoticonsInterface() 0024 { 0025 } // KF6 TODO: de-inline (-Wweak-vtables) 0026 0027 virtual QString parseEmoticons(const QString &text, bool strictParse = false, const QStringList &exclude = QStringList()) = 0; 0028 }; 0029 0030 Q_DECLARE_METATYPE(KTextToHTMLEmoticonsInterface *) 0031 0032 #define KTEXTTOHTMLEMOTICONS_PROPERTY "KTextToHTMLEmoticons" 0033 0034 #endif