10#include "kemoticons_export.h"
11#include "kemoticonstheme.h"
15#include <KServiceTypeTrader>
17class KEmoticonsPrivate;
138 const QScopedPointer<KEmoticonsPrivate> d;
This class contains the emoticons theme.
Definition kemoticonstheme.h:23
This class can be used to retrieve, install, create emoticons theme.
Definition kemoticons.h:32
static void setTheme(const KEmoticonsTheme &theme)
Sets theme as the current emoticon theme.
KEmoticonsTheme theme() const
Retrieves the current emoticon theme.
static QStringList themeList()
Returns a list of installed emoticon themes.
static void setTheme(const QString &theme)
Sets theme as the current emoticon theme.
~KEmoticons() override
Destructor.
static KEmoticonsTheme::ParseMode parseMode()
Returns the current parse mode.
QStringList installTheme(const QString &archiveName)
Installs all emoticon themes inside the archive archiveName.
void setPreferredEmoticonSize(const QSize &size)
If a preferred size is set, all parsed emoticons will be returned with the size.
KEmoticons()
Default constructor.
static QString currentThemeName()
Retrieves the current emoticon theme name.
static void setParseMode(KEmoticonsTheme::ParseMode mode)
Sets the parse mode to mode.
QSize preferredEmoticonSize() const
Returns size in which parsed emoticons will be returned.
KEmoticonsTheme theme(const QString &name) const
Retrieves the emoticon theme with name name.
KEmoticonsTheme newTheme(const QString &name, const KService::Ptr &service)
Creates a new emoticon theme.