KUtils
kemoticonstheme.h
Go to the documentation of this file.
119 QString parseEmoticons(const QString &text, ParseMode mode = DefaultParse, const QStringList &exclude = QStringList()) const;
163 bool addEmoticon(const QString &emo, const QString &text, KEmoticonsProvider::AddEmoticonOption option = KEmoticonsProvider::DoNotCopy);
This is the base class for the emoticons provider plugins.
Definition kemoticonsprovider.h:36
@ DoNotCopy
< Don't copy the emoticon file into the theme directory
Definition kemoticonsprovider.h:54
bool removeEmoticon(const QString &emo)
Remove the emoticon emo, this will not delete the image file too.
Definition kemoticonstheme.cpp:82
QHash< QString, QStringList > emoticonsMap() const
Returns a QHash that contains the emoticons path as keys and the text as values.
Definition kemoticonstheme.cpp:145
@ RelaxedParse
Parse mode where all possible emoticon matches are allowed.
Definition kemoticonstheme.h:44
QList< Token > tokenize(const QString &message, ParseMode mode=DefaultParse) const
Tokenize the message message with ParseMode mode.
Definition kemoticonstheme.cpp:201
bool addEmoticon(const QString &emo, const QString &text, KEmoticonsProvider::AddEmoticonOption option=KEmoticonsProvider::DoNotCopy)
Add the emoticon emo with text text.
Definition kemoticonstheme.cpp:91
QString parseEmoticons(const QString &text, ParseMode mode=DefaultParse, const QStringList &exclude=QStringList()) const
Parse emoticons in text text with ParseMode mode and optionally excluding emoticons from exclude.
Definition kemoticonstheme.cpp:163
bool loadTheme(const QString &path)
Load the theme inside the directory path.
Definition kemoticonstheme.cpp:73
bool isNull() const
Check if the theme has a valid provider and it returns true if it can't find it.
Definition kemoticonstheme.cpp:362
KEmoticonsTheme()
Default constructor, it creates a null emoticons theme you should probably never use this,...
Definition kemoticonstheme.cpp:53
KEmoticonsTheme & operator=(const KEmoticonsTheme &ket)
Definition kemoticonstheme.cpp:367
Token(TokenType t, const QString &m, const QString &p, const QString &html)
Create a Token of type t, text m, image path p and html code html.
Definition kemoticonstheme.h:74
Token(TokenType t, const QString &m)
Create a Token of type t, and text m.
Definition kemoticonstheme.h:70
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.