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

KUtils

  • 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
30class KEmoticonsPrivate;
31
44class KEMOTICONS_EXPORT KEmoticons : public QObject
45{
46 Q_OBJECT
47public:
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
128private:
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;
KEmoticonsTheme
This class contains the emoticons theme.
Definition: kemoticonstheme.h:35
KEmoticons
This class can be used to retrieve, install, create emoticons theme.
Definition: kemoticons.h:45
KSharedPtr< KService >
QObject
kemoticons_export.h
kemoticonstheme.h
kservicetypetrader.h
name
const char * name(StandardAction id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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