KUtils
kemoticonstheme.cpp
Go to the documentation of this file.
91bool KEmoticonsTheme::addEmoticon(const QString &emo, const QString &text, KEmoticonsProvider::AddEmoticonOption option)
163QString KEmoticonsTheme::parseEmoticons(const QString &text, ParseMode mode, const QStringList &exclude) const
191bool EmoticonCompareEscaped( const KEmoticonsProvider::Emoticon &s1, const KEmoticonsProvider::Emoticon &s2)
195bool EmoticonCompare( const KEmoticonsProvider::Emoticon &s1, const KEmoticonsProvider::Emoticon &s2)
201QList<KEmoticonsTheme::Token> KEmoticonsTheme::tokenize(const QString &message, ParseMode mode) const
347 result.append(Token(Image, itFound.first.matchTextEscaped, itFound.first.picPath, itFound.first.picHTMLCode));
350 result.append(Token(Image, itFound.first.matchTextEscaped, itFound.first.picPath, itFound.first.picHTMLCode));
This is the base class for the emoticons provider plugins.
Definition: kemoticonsprovider.h:36
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
static KEmoticonsTheme::ParseMode parseMode()
Returns the current parse mode.
Definition: kemoticons.cpp:291
#define kDebug
#define kWarning
bool EmoticonCompare(const KEmoticonsProvider::Emoticon &s1, const KEmoticonsProvider::Emoticon &s2)
Definition: kemoticonstheme.cpp:195
bool EmoticonCompareEscaped(const KEmoticonsProvider::Emoticon &s1, const KEmoticonsProvider::Emoticon &s2)
Definition: kemoticonstheme.cpp:191
void message(KMessage::MessageType messageType, const QString &text, const QString &caption=QString())
const char * name(StandardAction id)
QString matchTextEscaped
Definition: kemoticonsprovider.h:45
A token consists of a QString text which is either a regular text or a path to image depending on the...
Definition: kemoticonstheme.h:65
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.