KUtils
pidgin_emoticons.cpp
Go to the documentation of this file.
83 bool PidginEmoticons::addEmoticon(const QString &emo, const QString &text, AddEmoticonOption option)
void setCodec(QTextCodec *codec)
QString saveLocation(const char *type, const QString &suffix=QString(), bool create=true) const
void clear()
void addEmoticonIndex(const QString &path, const QStringList &emoList)
Add an emoticon to the index.
Definition: kemoticonsprovider.cpp:135
QString cap(int nth) const
bool removeEmoticon(const QString &emo)
Remove the emoticon emo, this will not delete the image file too.
Definition: pidgin_emoticons.cpp:37
QString readLine(qint64 maxlen)
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
K_PLUGIN_FACTORY(ProxyScoutFactory, registerPlugin< KPAC::ProxyScout >();) namespace KPAC
const T & at(int i) const
QString fileName() const
void removeAt(int i)
KStandardDirs * dirs()
bool addEmoticon(const QString &emo, const QString &text, AddEmoticonOption option=DoNotCopy)
Add the emoticon emo with text text.
Definition: pidgin_emoticons.cpp:83
This is the base class for the emoticons provider plugins.
Definition: kemoticonsprovider.h:35
QString join(const QString &separator) const
bool exists() const
bool loadTheme(const QString &path)
Load the theme inside the directory path.
Definition: pidgin_emoticons.cpp:128
int size() const
QHash< QString, QStringList > emoticonsMap() const
Returns a QHash that contains the emoticons path as keys and the text as values.
Definition: kemoticonsprovider.cpp:121
void addEmoticonsMap(QString key, QStringList value)
Insert a new item in the emoticons map.
Definition: kemoticonsprovider.cpp:109
int indexIn(const QString &str, int offset, CaretMode caretMode) const
bool atEnd() const
QString fileName() const
bool isEmpty() const
QString trimmed() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
void removeEmoticonIndex(const QString &path, const QStringList &emoList)
Remove an emoticon from the index.
Definition: kemoticonsprovider.cpp:158
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
virtual bool loadTheme(const QString &path)
Load the theme inside the directory path.
Definition: kemoticonsprovider.cpp:55
virtual void close()
void insert(int i, const T &value)
QString findResource(const char *type, const QString &filename) const
QStringList split(const QString &sep, const QString &str, bool allowEmptyEntries)
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
int indexOf(const QRegExp &rx, int from) const
int compare(const QString &other) const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
Definition: pidgin_emoticons.h:24
virtual bool addEmoticon(const QString &emo, const QString &text, AddEmoticonOption option=DoNotCopy)
Add the emoticon emo with text text.
Definition: kemoticonsprovider.cpp:70
#define K_EXPORT_PLUGIN(factory)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.