Logo Search packages:      
Sourcecode: kmess version File versions  Download package

Signals | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes

EmoticonTheme Class Reference
[main]

Data class for a group of emoticons. More...

#include <emoticontheme.h>

List of all members.

Signals

void updated ()

Public Member Functions

void addEmoticon (const QString &pictureFile, const QStringList &shortcuts)
bool contains (QString shortcut)
bool emoticonIsAdded (QString dataHash)
 EmoticonTheme (const EmoticonTheme &other)
 EmoticonTheme ()
const EmoticongetEmoticon (QString shortcut) const
const QList< Emoticon * > & getEmoticons () const
const QHash< QString, QString > & getFileNames () const
const QHash< QString, QString > & getHashes () const
const QRegExp & getHtmlPattern () const
const QHash< QString, QString > & getHtmlReplacements (bool isSmall=false) const
const QStringList & getList () const
const QRegExp & getPattern () const
QString getReplacement (const QString &code, bool isSmall=false) const
const QHash< QString, QString > & getReplacements (bool isSmall=false) const
const QString & getThemePath ()
bool loadTheme (QString themeName, bool isCustomTheme)
bool removeEmoticon (QString shortcut)
bool renameEmoticon (QString oldShortcut, QString newShortcut)
bool saveTheme ()
void setThemeName (const QString &newThemeName)
 Change the theme name.
virtual ~EmoticonTheme ()

Static Public Member Functions

static QString getThemeIcon (QString themeDir)

Private Member Functions

bool createTheme (const QString &themeDir)
void updateCache ()
bool updateTheme (const QString &themeDir)
void updateTitles ()

Private Attributes

QStringList emoticonList_
QList< Emoticon * > emoticons_
QHash< QString, QString > hashes_
bool isCustomTheme_
QHash< QString, QString > largeHtmlReplacements_
QHash< QString, QString > largeReplacements_
bool loadingTheme_
QRegExp patternHtml_
QRegExp patternText_
QHash< QString, QString > smallHtmlReplacements_
QHash< QString, QString > smallReplacements_
QHash< QString, QString > themeFileNames_
QString themePath_

Detailed Description

Data class for a group of emoticons.

This class represents an emoticon theme, which may be a default emoticon set, or a custom emoticon set. It can load, update, and save an emoticon theme. Themes are loaded from, and saved to, XML definition files - compatible with other clients like Kopete, even non-MSN ones.

Author:
Michael Curtis, Diederik van der Boor, Valerio Pilo

Definition at line 38 of file emoticontheme.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index