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

KUtils

  • 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
24class PidginEmoticons : public KEmoticonsProvider
25{
26 Q_OBJECT
27public:
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
38private:
39 QStringList m_text;
40};
41
42#endif /* PIDGIN_EMOTICONS_H */
43
44// kate: space-indent on; indent-width 4; replace-tabs on;
KEmoticonsProvider
This is the base class for the emoticons provider plugins.
Definition: kemoticonsprovider.h:36
KEmoticonsProvider::AddEmoticonOption
AddEmoticonOption
Options to pass to addEmoticon.
Definition: kemoticonsprovider.h:53
KEmoticonsProvider::DoNotCopy
@ DoNotCopy
< Don't copy the emoticon file into the theme directory
Definition: kemoticonsprovider.h:54
PidginEmoticons
Definition: pidgin_emoticons.h:25
PidginEmoticons::createNew
void createNew()
Create a new theme.
Definition: pidgin_emoticons.cpp:196
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
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::save
void save()
Save the emoticon theme.
Definition: pidgin_emoticons.cpp:102
PidginEmoticons::loadTheme
bool loadTheme(const QString &path)
Load the theme inside the directory path.
Definition: pidgin_emoticons.cpp:128
QObject
kemoticonsprovider.h
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