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

KUtils

Public Member Functions | List of all members
PidginEmoticons Class Reference

#include <pidgin_emoticons.h>

Inheritance diagram for PidginEmoticons:
KEmoticonsProvider QObject

Public Member Functions

 PidginEmoticons (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 ()
 
virtual bool addEmoticon (const QString &emo, const QString &text, AddEmoticonOption option=DoNotCopy)
 
virtual void createNew ()
 
QHash< QChar, QList< Emoticon > > emoticonsIndex () const
 
QHash< QString, QStringList > emoticonsMap () const
 
QString fileName () const
 
virtual bool loadTheme (const QString &path)
 
virtual bool removeEmoticon (const QString &emo)
 
virtual void save ()
 
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 24 of file pidgin_emoticons.h.

Constructor & Destructor Documentation

◆ PidginEmoticons()

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

Definition at line 31 of file pidgin_emoticons.cpp.

Member Function Documentation

◆ addEmoticon()

bool PidginEmoticons::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 83 of file pidgin_emoticons.cpp.

◆ createNew()

void PidginEmoticons::createNew ( )
virtual

Create a new theme.

Reimplemented from KEmoticonsProvider.

Definition at line 196 of file pidgin_emoticons.cpp.

◆ loadTheme()

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

Load the theme inside the directory path.

Parameters
pathpath to the directory

Reimplemented from KEmoticonsProvider.

Definition at line 128 of file pidgin_emoticons.cpp.

◆ removeEmoticon()

bool PidginEmoticons::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 37 of file pidgin_emoticons.cpp.

◆ save()

void PidginEmoticons::save ( )
virtual

Save the emoticon theme.

Reimplemented from KEmoticonsProvider.

Definition at line 102 of file pidgin_emoticons.cpp.


The documentation for this class was generated from the following files:
  • pidgin_emoticons.h
  • pidgin_emoticons.cpp
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