• 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
kemoticons.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 KEMOTICONS_H
20 #define KEMOTICONS_H
21 
22 #include "kemoticons_export.h"
23 #include "kemoticonstheme.h"
24 
25 #include <QtCore/QObject>
26 #include <QtCore/QHash>
27 
28 #include <kservicetypetrader.h>
29 
30 class KEmoticonsPrivate;
31 
44 class KEMOTICONS_EXPORT KEmoticons : public QObject
45 {
46  Q_OBJECT
47 public:
48 
52  KEmoticons();
53 
57  ~KEmoticons();
58 
63  KEmoticonsTheme theme();
64 
70  KEmoticonsTheme theme(const QString &name);
71 
75  static QString currentThemeName();
76 
80  static QStringList themeList();
81 
86  static void setTheme(const KEmoticonsTheme &theme);
87 
92  static void setTheme(const QString &theme);
93 
109  KEmoticonsTheme newTheme(const QString &name, const KService::Ptr &service);
110 
116  QStringList installTheme(const QString &archiveName);
117 
121  static void setParseMode(KEmoticonsTheme::ParseMode mode);
122 
126  static KEmoticonsTheme::ParseMode parseMode();
127 
128 private:
132  KEmoticonsPrivate * const d;
133 
134  Q_PRIVATE_SLOT(d, void themeChanged(const QString &path))
135 };
136 
137 #endif /* KEMOTICONS_H */
138 
139 // kate: space-indent on; indent-width 4; replace-tabs on;
KSharedPtr< KService >
kemoticonstheme.h
KEmoticonsTheme
This class contains the emoticons theme.
Definition: kemoticonstheme.h:34
name
const char * name(StandardAction id)
KEmoticons
This class can be used to retrieve, install, create emoticons theme.
Definition: kemoticons.h:44
QString
QObject
kservicetypetrader.h
kemoticons_export.h
QStringList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:34 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