KUtils
kde_emoticons.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 KDE_EMOTICONS_H 00020 #define KDE_EMOTICONS_H 00021 00022 #include <kemoticonsprovider.h> 00023 00024 #include <QtXml/QDomDocument> 00025 00026 class KdeEmoticons : public KEmoticonsProvider 00027 { 00028 Q_OBJECT 00029 public: 00030 KdeEmoticons(QObject *parent, const QVariantList &args); 00031 00032 bool loadTheme(const QString &path); 00033 00034 bool removeEmoticon(const QString &emo); 00035 bool addEmoticon(const QString &emo, const QString &text, AddEmoticonOption option = DoNotCopy); 00036 void save(); 00037 00038 void createNew(); 00039 00040 private: 00041 QDomDocument m_themeXml; 00042 }; 00043 00044 #endif /* KDE_EMOTICONS_H */ 00045 00046 // kate: space-indent on; indent-width 4; replace-tabs on;