KUtils
kemoticons.h
Go to the documentation of this file.
00001 /********************************************************************************** 00002 * Copyright (C) 2008 by Carlo Segato <brandon.ml@gmail.com> * 00003 * * 00004 * This library is free software; you can redistribute it and/or * 00005 * modify it under the terms of the GNU Lesser General Public * 00006 * License as published by the Free Software Foundation; either * 00007 * version 2.1 of the License, or (at your option) any later version. * 00008 * * 00009 * This library is distributed in the hope that it will be useful, * 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00012 * Lesser General Public License for more details. * 00013 * * 00014 * You should have received a copy of the GNU Lesser General Public * 00015 * License along with this library. If not, see <http://www.gnu.org/licenses/>.* 00016 * * 00017 **********************************************************************************/ 00018 00019 #ifndef KEMOTICONS_H 00020 #define KEMOTICONS_H 00021 00022 #include "kemoticons_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 KEMOTICONS_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 /* KEMOTICONS_H */ 00138 00139 // kate: space-indent on; indent-width 4; replace-tabs on;
KDE 4.6 API Reference