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