• 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
  • xmpp
xmpp_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 XMPP_EMOTICONS_H
20 #define XMPP_EMOTICONS_H
21 
22 #include <kemoticonsprovider.h>
23 
24 #include <QtXml/QDomDocument>
25 
26 class XmppEmoticons : public KEmoticonsProvider
27 {
28  Q_OBJECT
29 public:
30  XmppEmoticons(QObject *parent, const QVariantList &args);
31 
32  bool loadTheme(const QString &path);
33 
34  bool removeEmoticon(const QString &emo);
35  bool addEmoticon(const QString &emo, const QString &text, AddEmoticonOption option = DoNotCopy);
36  void save();
37 
38  void createNew();
39 
40 private:
41  QDomDocument m_themeXml;
42 };
43 
44 #endif /* XMPP_EMOTICONS_H */
45 
46 // kate: space-indent on; indent-width 4; replace-tabs on;
XmppEmoticons::save
void save()
Save the emoticon theme.
Definition: xmpp_emoticons.cpp:105
XmppEmoticons
Definition: xmpp_emoticons.h:26
KEmoticonsProvider
This is the base class for the emoticons provider plugins.
Definition: kemoticonsprovider.h:35
XmppEmoticons::addEmoticon
bool addEmoticon(const QString &emo, const QString &text, AddEmoticonOption option=DoNotCopy)
Add the emoticon emo with text text.
Definition: xmpp_emoticons.cpp:70
QString
kemoticonsprovider.h
QObject
XmppEmoticons::removeEmoticon
bool removeEmoticon(const QString &emo)
Remove the emoticon emo, this will not delete the image file too.
Definition: xmpp_emoticons.cpp:39
XmppEmoticons::createNew
void createNew()
Create a new theme.
Definition: xmpp_emoticons.cpp:196
XmppEmoticons::XmppEmoticons
XmppEmoticons(QObject *parent, const QVariantList &args)
Definition: xmpp_emoticons.cpp:33
KEmoticonsProvider::DoNotCopy
< Don't copy the emoticon file into the theme directory
Definition: kemoticonsprovider.h:54
XmppEmoticons::loadTheme
bool loadTheme(const QString &path)
Load the theme inside the directory path.
Definition: xmpp_emoticons.cpp:125
KEmoticonsProvider::AddEmoticonOption
AddEmoticonOption
Options to pass to addEmoticon.
Definition: kemoticonsprovider.h:53
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