KUtils
kemoticons.cpp
Go to the documentation of this file.
218 } else if (archiveName.endsWith(QLatin1String("jisp")) || archiveName.endsWith(QLatin1String("zip"))) {
294 return (KEmoticonsTheme::ParseMode) config.readEntry("parseMode", int(KEmoticonsTheme::RelaxedParse));
virtual bool isDirectory() const
static KServiceTypeTrader * self()
KEmoticonsTheme newTheme(const QString &name, const KService::Ptr &service)
Create a new emoticons theme.
Definition: kemoticons.cpp:178
QStringList findDirs(const char *type, const QString &reldir) const
QStringList installTheme(const QString &archiveName)
Install all themes inside the archive archiveName.
Definition: kemoticons.cpp:189
QVariant property(const QString &_name, QVariant::Type t) const
KStandardDirs * dirs()
const char * name(StandardAction id)
This is the base class for the emoticons provider plugins.
Definition: kemoticonsprovider.h:35
static QDebug kError(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
static void setParseMode(KEmoticonsTheme::ParseMode mode)
Set the parse mode to mode.
Definition: kemoticons.cpp:284
This class can be used to retrieve, install, create emoticons theme.
Definition: kemoticons.h:44
bool exists() const
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
static void setTheme(const KEmoticonsTheme &theme)
Set theme as the current theme.
Definition: kemoticons.cpp:166
void setSorting(QFlags< QDir::SortFlag > sort)
static KEmoticonsTheme::ParseMode parseMode()
Returns the current parse mode.
Definition: kemoticons.cpp:291
Parse mode where all possible emoticon matches are allowed.
Definition: kemoticonstheme.h:44
int size() const
KSharedConfigPtr config()
bool priorityLessThan(const KService::Ptr &s1, const KService::Ptr &s2)
Definition: kemoticons.cpp:63
const char * name() const
void setFilter(QFlags< QDir::Filter > filters)
int count(const T &value) const
void append(const T &value)
int toInt(bool *ok) const
bool isEmpty() const
bool isEmpty() const
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
iterator end()
QString library() const
void copyTo(const QString &dest, bool recursive=true) const
const KArchiveEntry * entry(const QString &name) const
KService::List query(const QString &servicetype, const QString &constraint=QString()) const
static QString locateLocal(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
QStringList entryList(QFlags< QDir::Filter > filters, QFlags< QDir::SortFlag > sort) const
const QChar at(int position) const
typedef ConstIterator
QString findResource(const char *type, const QString &filename) const
static QString currentThemeName()
Retrieve the current emoticon theme name.
Definition: kemoticons.cpp:145
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QString name() const
void sync()
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
T readEntry(const QString &key, const T &aDefault) const
iterator begin()
QStringList entries() const
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.