• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KUtils

  • sources
  • kde-4.12
  • kdelibs
  • kutils
  • kemoticons
  • providers
  • pidgin
pidgin_emoticons.h
Go to the documentation of this file.
1 /**********************************************************************************
2  * Copyright (C) 2008 by Carlo Segato <brandon.ml@gmail.com> *
3  * *
4  * This library is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU Lesser General Public *
6  * License as published by the Free Software Foundation; either *
7  * version 2.1 of the License, or (at your option) any later version. *
8  * *
9  * This library is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
12  * Lesser General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU Lesser General Public *
15  * License along with this library. If not, see <http://www.gnu.org/licenses/>.*
16  * *
17  **********************************************************************************/
18 
19 #ifndef PIDGIN_EMOTICONS_H
20 #define PIDGIN_EMOTICONS_H
21 
22 #include <kemoticonsprovider.h>
23 
24 class PidginEmoticons : public KEmoticonsProvider
25 {
26  Q_OBJECT
27 public:
28  PidginEmoticons(QObject *parent, const QVariantList &args);
29 
30  bool loadTheme(const QString &path);
31 
32  bool removeEmoticon(const QString &emo);
33  bool addEmoticon(const QString &emo, const QString &text, AddEmoticonOption option = DoNotCopy);
34  void save();
35 
36  void createNew();
37 
38 private:
39  QStringList m_text;
40 };
41 
42 #endif /* PIDGIN_EMOTICONS_H */
43 
44 // kate: space-indent on; indent-width 4; replace-tabs on;
PidginEmoticons::PidginEmoticons
PidginEmoticons(QObject *parent, const QVariantList &args)
Definition: pidgin_emoticons.cpp:31
PidginEmoticons::removeEmoticon
bool removeEmoticon(const QString &emo)
Remove the emoticon emo, this will not delete the image file too.
Definition: pidgin_emoticons.cpp:37
PidginEmoticons::addEmoticon
bool addEmoticon(const QString &emo, const QString &text, AddEmoticonOption option=DoNotCopy)
Add the emoticon emo with text text.
Definition: pidgin_emoticons.cpp:83
KEmoticonsProvider
This is the base class for the emoticons provider plugins.
Definition: kemoticonsprovider.h:35
QString
kemoticonsprovider.h
QObject
PidginEmoticons::loadTheme
bool loadTheme(const QString &path)
Load the theme inside the directory path.
Definition: pidgin_emoticons.cpp:128
PidginEmoticons::save
void save()
Save the emoticon theme.
Definition: pidgin_emoticons.cpp:102
QStringList
PidginEmoticons::createNew
void createNew()
Create a new theme.
Definition: pidgin_emoticons.cpp:196
KEmoticonsProvider::DoNotCopy
< Don't copy the emoticon file into the theme directory
Definition: kemoticonsprovider.h:54
KEmoticonsProvider::AddEmoticonOption
AddEmoticonOption
Options to pass to addEmoticon.
Definition: kemoticonsprovider.h:53
PidginEmoticons
Definition: pidgin_emoticons.h:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KUtils

Skip menu "KUtils"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal