blob: 878bc9b9d86fbe3825d2bd53051d2c2726669651 (
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
|
#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() {
QString htmlMessage =m_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);
}
|