KUtils
kemoticons.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KEMOTICONS_H
00020 #define KEMOTICONS_H
00021
00022 #include "kutils_export.h"
00023 #include "kemoticonstheme.h"
00024
00025 #include <QtCore/QObject>
00026 #include <QtCore/QHash>
00027
00028 #include <kservicetypetrader.h>
00029
00030 class KEmoticonsPrivate;
00031
00044 class KUTILS_EXPORT KEmoticons : public QObject
00045 {
00046 Q_OBJECT
00047 public:
00048
00052 KEmoticons();
00053
00057 ~KEmoticons();
00058
00063 KEmoticonsTheme theme();
00064
00070 KEmoticonsTheme theme(const QString &name);
00071
00075 static QString currentThemeName();
00076
00080 static QStringList themeList();
00081
00086 static void setTheme(const KEmoticonsTheme &theme);
00087
00092 static void setTheme(const QString &theme);
00093
00109 KEmoticonsTheme newTheme(const QString &name, const KService::Ptr &service);
00110
00116 QStringList installTheme(const QString &archiveName);
00117
00121 static void setParseMode(KEmoticonsTheme::ParseMode mode);
00122
00126 static KEmoticonsTheme::ParseMode parseMode();
00127
00128 private:
00132 KEmoticonsPrivate * const d;
00133
00134 Q_PRIVATE_SLOT(d, void themeChanged(const QString &path))
00135 };
00136
00137 #endif
00138
00139