summaryrefslogtreecommitdiffstats
path: root/kpf/src/Server.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kpf/src/Server.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;