#include <IrcTextFormat>
#include <IrcConnection>
#include <QTime>
#include <Irc>
{
switch (message->
type()) {
formatted = formatJoinMessage(static_cast<IrcJoinMessage*>(message));
break;
formatted = formatModeMessage(static_cast<IrcModeMessage*>(message));
break;
formatted = formatNamesMessage(static_cast<IrcNamesMessage*>(message));
break;
formatted = formatNickMessage(static_cast<IrcNickMessage*>(message));
break;
formatted = formatPartMessage(static_cast<IrcPartMessage*>(message));
break;
formatted = formatPrivateMessage(static_cast<IrcPrivateMessage*>(message));
break;
formatted = formatQuitMessage(static_cast<IrcQuitMessage*>(message));
break;
default:
break;
}
return formatMessage(formatted);
}
{
formatted =
QObject::tr(
"<font color='gray'>%1</font>").
arg(formatted);
formatted =
QObject::tr(
"<font color='maroon'>%1</font>").
arg(formatted);
formatted =
QObject::tr(
"<font color='indianred'>%1</font>").
arg(formatted);
return formatted;
}
}
{
else
}
{
if (message->isReply())
else
}
{
}
{
}
{
else
}
{
if (message->isAction())
else
}
{
else
}