Communi  1.1.0
A cross-platform IRC client library written with Qt 4
 All Classes Files Functions Enumerations Enumerator Properties Macros Groups Pages
Static Public Member Functions
IrcUtil Class Reference

The IrcUtil class provides miscellaneous utility functions. More...

#include <IrcUtil>

List of all members.

Static Public Member Functions

static QString colorCodeToName (int code, const QString &defaultColor=QLatin1String("black"))
static QString messageToHtml (const QString &message)

Detailed Description

The IrcUtil class provides miscellaneous utility functions.


Member Function Documentation

QString IrcUtil::colorCodeToName ( int  code,
const QString &  defaultColor = QLatin1String("black") 
)
static

Converts a color code to a color name. If the color code is unknown, the function returns defaultColor.

QString IrcUtil::messageToHtml ( const QString &  message)
static

Converts message to HTML. This function parses the message and replaces IRC-style formatting like colors, bold and underline to the corresponding HTML formatting. Furthermore, this function detects URLs and replaces them with appropriate HTML hyperlinks.


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