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));
QStringList entries() const
const KArchiveEntry * entry(const QString &name) const
void copyTo(const QString &dest, bool recursive=true) const
virtual bool isDirectory() const
QString name() const
virtual bool close()
virtual bool open(QIODevice::OpenMode mode)
const KArchiveDirectory * directory() const
This is the base class for the emoticons provider plugins.
Definition: kemoticonsprovider.h:36
@ RelaxedParse
Parse mode where all possible emoticon matches are allowed.
Definition: kemoticonstheme.h:44
This class can be used to retrieve, install, create emoticons theme.
Definition: kemoticons.h:45
static KEmoticonsTheme::ParseMode parseMode()
Returns the current parse mode.
Definition: kemoticons.cpp:291
static void setTheme(const KEmoticonsTheme &theme)
Set theme as the current theme.
Definition: kemoticons.cpp:166
QStringList installTheme(const QString &archiveName)
Install all themes inside the archive archiveName.
Definition: kemoticons.cpp:189
static void setParseMode(KEmoticonsTheme::ParseMode mode)
Set the parse mode to mode.
Definition: kemoticons.cpp:284
static QString currentThemeName()
Retrieve the current emoticon theme name.
Definition: kemoticons.cpp:145
KEmoticonsTheme newTheme(const QString &name, const KService::Ptr &service)
Create a new emoticons theme.
Definition: kemoticons.cpp:178
static Ptr findByPath(const QString &path, mode_t mode=0, bool fast_mode=false, int *accuracy=0)
T * create(const QString &keyword, QObject *parent=0, const QVariantList &args=QVariantList())
KPluginFactory * factory()
static KServiceTypeTrader * self()
KService::List query(const QString &servicetype, const QString &constraint=QString()) const
QStringList findDirs(const char *type, const QString &reldir) const
QString findResource(const char *type, const QString &filename) const
static QString locateLocal(const char *type, const QString &filename, bool createDir, const KComponentData &cData=KGlobal::mainComponent())
#define kDebug
#define kWarning
bool priorityLessThan(const KService::Ptr &s1, const KService::Ptr &s2)
Definition: kemoticons.cpp:63
KStandardDirs * dirs()
KSharedConfigPtr config()
const char * name(StandardAction id)
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.