summaryrefslogtreecommitdiffstats
path: root/kpf/src/Response.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpf/src/Response.cpp')
-rw-r--r--kpf/src/Response.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kpf/src/Response.cpp b/kpf/src/Response.cpp
index a52de893..1299fd44 100644
--- a/kpf/src/Response.cpp
+++ b/kpf/src/Response.cpp
@@ -76,7 +76,7 @@ namespace KPF
return code_;
}
- QCString
+ TQCString
Response::text(const Request & request) const
{
TQString s;
@@ -90,7 +90,7 @@ namespace KPF
if (request.protocol() >= 1.0)
{
s = TQString(request.protocolString())
- + TQString(" %1 %2\r\n").arg(code_).arg(responseName(code_));
+ + TQString(" %1 %2\r\n").tqarg(code_).tqarg(responseName(code_));
}
break;
@@ -103,7 +103,7 @@ namespace KPF
case 501:
case 505:
s = TQString(request.protocolString())
- + TQString(" %1 %2\r\n").arg(code_).arg(responseName(code_))
+ + TQString(" %1 %2\r\n").tqarg(code_).tqarg(responseName(code_))
+ data(code_, request);
break;
@@ -115,7 +115,7 @@ namespace KPF
return s.utf8();
}
- QString
+ TQString
Response::data(uint code, const Request & request) const
{
TQString contentType = "Content-Type: text/html; charset=utf-8\r\n";
@@ -152,9 +152,9 @@ namespace KPF
{
TQString line(str.readLine());
- line.replace(regexpMessage, responseName(code));
- line.replace(regexpCode, TQString::number(code));
- line.replace(regexpResource, request.path());
+ line.tqreplace(regexpMessage, responseName(code));
+ line.tqreplace(regexpCode, TQString::number(code));
+ line.tqreplace(regexpResource, request.path());
html = line + "\r\n";
}
@@ -178,7 +178,7 @@ namespace KPF
}
TQString contentLength =
- TQString("Content-Length: %1\r\n").arg(html.length());
+ TQString("Content-Length: %1\r\n").tqarg(html.length());
return (contentType + contentLength + "\r\n" + html);
}