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

KUtils

Public Member Functions
KdeEmoticons Class Reference

#include <kde_emoticons.h>

Inheritance diagram for KdeEmoticons:
KEmoticonsProvider QObject

List of all members.

Public Member Functions

 KdeEmoticons (QObject *parent, const QVariantList &args)
bool addEmoticon (const QString &emo, const QString &text, AddEmoticonOption option=DoNotCopy)
void createNew ()
bool loadTheme (const QString &path)
bool removeEmoticon (const QString &emo)
void save ()
- Public Member Functions inherited from KEmoticonsProvider
 KEmoticonsProvider (QObject *parent=0)
virtual ~KEmoticonsProvider ()
QHash< QChar, QList< Emoticon > > emoticonsIndex () const
QHash< QString, QStringList > emoticonsMap () const
QString fileName () const
void setThemeName (const QString &name)
QString themeName () const
QString themePath () const

Additional Inherited Members

- Public Types inherited from KEmoticonsProvider
enum  AddEmoticonOption { DoNotCopy, Copy }
- Protected Member Functions inherited from KEmoticonsProvider
void addEmoticonIndex (const QString &path, const QStringList &emoList)
void addEmoticonsMap (QString key, QStringList value)
void clearEmoticonsMap ()
void removeEmoticonIndex (const QString &path, const QStringList &emoList)
void removeEmoticonsMap (QString key)
- Protected Attributes inherited from KEmoticonsProvider
KEmoticonsProviderPrivate *const d

Detailed Description

Definition at line 26 of file kde_emoticons.h.


Constructor & Destructor Documentation

KdeEmoticons::KdeEmoticons ( QObject *  parent,
const QVariantList &  args 
)

Definition at line 33 of file kde_emoticons.cpp.


Member Function Documentation

bool KdeEmoticons::addEmoticon ( const QString &  emo,
const QString &  text,
AddEmoticonOption  option = DoNotCopy 
)
virtual

Add the emoticon emo with text text.

Parameters:
emopath to the emoticon image
textthe text of the emoticon separated by space for multiple text
copywhether or not copy emo into the theme directory
Returns:
true if it can add the emoticon

Reimplemented from KEmoticonsProvider.

Definition at line 60 of file kde_emoticons.cpp.

void KdeEmoticons::createNew ( )
virtual

Create a new theme.

Reimplemented from KEmoticonsProvider.

Definition at line 182 of file kde_emoticons.cpp.

bool KdeEmoticons::loadTheme ( const QString &  path)
virtual

Load the theme inside the directory path.

Parameters:
pathpath to the directory

Reimplemented from KEmoticonsProvider.

Definition at line 106 of file kde_emoticons.cpp.

bool KdeEmoticons::removeEmoticon ( const QString &  emo)
virtual

Remove the emoticon emo, this will not delete the image file too.

Parameters:
emothe emoticon text to remove
Returns:
true if it can delete the emoticon

Reimplemented from KEmoticonsProvider.

Definition at line 39 of file kde_emoticons.cpp.

void KdeEmoticons::save ( )
virtual

Save the emoticon theme.

Reimplemented from KEmoticonsProvider.

Definition at line 86 of file kde_emoticons.cpp.


The documentation for this class was generated from the following files:
  • kde_emoticons.h
  • kde_emoticons.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 23 2013 22:01:51 by doxygen 1.8.1.1 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.10.5 API Reference

Skip menu "kdelibs-4.10.5 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