summaryrefslogtreecommitdiffstats
path: root/kpf/src/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpf/src/Server.cpp')
-rw-r--r--kpf/src/Server.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kpf/src/Server.cpp b/kpf/src/Server.cpp
index 90d94209..00904132 100644
--- a/kpf/src/Server.cpp
+++ b/kpf/src/Server.cpp
@@ -41,9 +41,9 @@ namespace KPF
const TQString & dir,
bool followSymlinks,
int socket,
- WebServer * parent
+ WebServer * tqparent
)
- : TQObject(parent, "Server")
+ : TQObject(tqparent, "Server")
{
d = new Private;
@@ -53,7 +53,7 @@ namespace KPF
d->followSymlinks = followSymlinks;
- d->birth = TQDateTime::currentDateTime();
+ d->birth = TQDateTime::tqcurrentDateTime();
d->socket.setSocket(socket);
@@ -226,7 +226,7 @@ namespace KPF
d->request.setMethod (l[0]);
d->request.setPath (l[1]);
- d->request.setProtocol (l.count() == 3 ? l[2] : TQString::null);
+ d->request.setProtocol (l.count() == 3 ? l[2] : TQString());
// Before we check the request, say we received it.
@@ -252,10 +252,10 @@ namespace KPF
// If there's .. or ~ in the path, we disallow. Either there's a mistake
// or someone's trying to h@x0r us. I wouldn't have worried about ~
// normally, because I don't do anything with it, so the resource would
- // simply not be found, but I'm worried that the QDir/QFile/QFileInfo
+ // simply not be found, but I'm worried that the TQDir/TQFile/TQFileInfo
// stuff might try to expand it, so I'm not taking any chances.
- if (d->request.path().contains("..") || d->request.path().contains('~'))
+ if (d->request.path().tqcontains("..") || d->request.path().tqcontains('~'))
{
kpfDebug << d->id << ": readRequest: bogus path" << endl;
d->state = Responding;
@@ -333,7 +333,7 @@ namespace KPF
while (!d->incomingLineBuffer.isEmpty())
{
- // This would be cleaner if there was a QValueQueue.
+ // This would be cleaner if there was a TQValueQueue.
// Basically we 'dequeue' the first line from incomingHeaderBuffer.
TQString line(d->incomingLineBuffer.first());
@@ -754,12 +754,12 @@ namespace KPF
d->socket.close();
- d->death = TQDateTime::currentDateTime();
+ d->death = TQDateTime::tqcurrentDateTime();
emit(finished(this));
}
- QHostAddress
+ TQHostAddress
Server::peerAddress() const
{
return d->socket.peerAddress();
@@ -1106,13 +1106,13 @@ namespace KPF
return d->state;
}
- QDateTime
+ TQDateTime
Server::birth() const
{
return d->birth;
}
- QDateTime
+ TQDateTime
Server::death() const
{
return d->death;