KUtils
#include <xmpp_emoticons.h>
Public Member Functions | |
XmppEmoticons (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 xmpp_emoticons.h.
Constructor & Destructor Documentation
XmppEmoticons::XmppEmoticons | ( | QObject * | parent, |
const QVariantList & | args | ||
) |
Definition at line 33 of file xmpp_emoticons.cpp.
Member Function Documentation
|
virtual |
Add the emoticon emo
with text text
.
- Parameters
-
emo path to the emoticon image text the text of the emoticon separated by space for multiple text copy whether or not copy emo
into the theme directory
- Returns
true
if it can add the emoticon
Reimplemented from KEmoticonsProvider.
Definition at line 70 of file xmpp_emoticons.cpp.
|
virtual |
Create a new theme.
Reimplemented from KEmoticonsProvider.
Definition at line 196 of file xmpp_emoticons.cpp.
Load the theme inside the directory path
.
- Parameters
-
path path to the directory
Reimplemented from KEmoticonsProvider.
Definition at line 125 of file xmpp_emoticons.cpp.
Remove the emoticon emo
, this will not delete the image file too.
- Parameters
-
emo the emoticon text to remove
- Returns
true
if it can delete the emoticon
Reimplemented from KEmoticonsProvider.
Definition at line 39 of file xmpp_emoticons.cpp.
|
virtual |
Save the emoticon theme.
Reimplemented from KEmoticonsProvider.
Definition at line 105 of file xmpp_emoticons.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.