blob: 4822fc4871a5e1cc5e37e5991c91ff992430b419 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#include "ircoutput.h"
IRCOutput::IRCOutput(IRCOutputType type, QString message) {
m_type = type;
m_message = message;
}
IRCOutputType IRCOutput::type() {
return m_type;
}
QString IRCOutput::message() {
return m_message;
}
QString IRCOutput::htmlMessage() {
return toHTML(m_message);
}
QString IRCOutput::toHTML(QString message) {
QString htmlMessage =message.replace(QRegExp("&"), "&");
htmlMessage = htmlMessage.replace(QRegExp(">"), ">");
htmlMessage = htmlMessage.replace(QRegExp("<"), "<");
return htmlMessage;
}
void IRCOutput::addParam(void *data) {
m_parameters.append(data);
}
void *IRCOutput::getParam(int index) {
return m_parameters.at(index);
}
|