Logo Search packages:      
Sourcecode: kmess version File versions

RichTextParser Class Reference

#include <richtextparser.h>

List of all members.

Detailed Description

Implements features from the MSN Plus extension to KMess.

Implements features from the "MSN Plus! Live" extension for MSN Messenger and Windows Live Messenger. These features can be: custom formatting in nick names, personal messages and in chat text; sending/receiving of little sound clips; contact pinging; special colored phrases which trigger a sound; various IRC-style commands, like /me; et cetera. Some of them are worth adding in KMess, some others are kind of useless but someday they could be implemented.

Currently the only implemented feature is text formatting, which is the most used and also the most annoying to not have; reading friendly names with all the tags and codes really IS annoying.

Valerio Pilo <valerio@kmess.org>

Antonio Nastasi <sifcenter@gmail.com>

Definition at line 72 of file richtextparser.h.

Static Public Member Functions

static void getCleanString (QString &string)
static void initialize ()
 Initialize the class.
static void parseMsnString (QString &text, bool showEmoticons=true, bool showSmallEmoticons=true, bool showLinks=true, bool showFormatting=false, const QString &handle=*((QString *) 0), QStringList &pendingEmoticonTags=*((QStringList *) 0))

Static Private Member Functions

static void getFormattedString (QString &string)
static QString getHtmlColor (const QString &color)
static QString getHtmlGradient (const QString &text, const QString &start, const QString &end)
static void parseMsnPlusString (QString &text)
 Replace the very old Messenger Plus characters with HTML markup.

Static Private Attributes

static QHash< QString, QString > cleanedStringsCache_
static QRegExp colorMatch_
static EmoticonManageremoticonManager_ = 0
static QHash< QString, QString > formattedStringsCache_
static int lastPendingEmoticonId_ = 0
static QStringList predefinedColors_


class KMessTest

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

Generated by  Doxygen 1.6.0   Back to index