KVIrc
4.9.2
DeveloperAPIs
|
A namespace to handle html-related functions. More...
Enumerations | |
enum | DefaultColor { Background = 100, Foreground = 101 } |
Defines back and foreground colors. More... | |
Functions | |
QString | convertToHtml (const QString &szText, bool bEscape=false) |
Converts a raw irc message to its html equivalent text. More... | |
A namespace to handle html-related functions.
KVIRC_API QString KviHtmlGenerator::convertToHtml | ( | const QString & | szText, |
bool | bEscape = false |
||
) |
Converts a raw irc message to its html equivalent text.
szText | Const reference to a message text |
bEscape | Whether to escape chars to HTML entities |
References Background, KviControlCodes::Bold, c, Foreground, g_pIconManager, g_pTextIconManager, KviIconManager::getSmallIconResourceName(), KviControlCodes::getUnicodeColorBytes(), KviControlCodes::Icon, KviTextIcon::id(), KVI_OPTION_BOOL, KVI_OPTION_MIRCCOLOR, KviOption_boolDrawEmoticons, KviTextIconManager::lookupTextIcon(), KviRuntimeInfo::name(), KviControlCodes::NoChange, KviControlCodes::Reset, KviControlCodes::Reverse, KviQString::toHtmlEscaped(), and KviControlCodes::Underline.
Referenced by KviTopicWidget::applyOptions(), ChannelTreeWidgetItem::ChannelTreeWidgetItem(), LogViewWindow::createLog(), KviTopicWidget::reset(), KviTopicWidget::setTopic(), NotifierMessage::updateGui(), and KviTopicWidget::updateToolTip().