diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdecore/network/khttpproxysocketdevice.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/network/khttpproxysocketdevice.cpp')
-rw-r--r-- | kdecore/network/khttpproxysocketdevice.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kdecore/network/khttpproxysocketdevice.cpp b/kdecore/network/khttpproxysocketdevice.cpp index 73e433a2e..09d8dd7a5 100644 --- a/kdecore/network/khttpproxysocketdevice.cpp +++ b/kdecore/network/khttpproxysocketdevice.cpp @@ -27,8 +27,8 @@ #include <sys/types.h> #include <sys/socket.h> -#include <qsocketnotifier.h> -#include <qcstring.h> +#include <tqsocketnotifier.h> +#include <tqcstring.h> #include "kresolver.h" #include "ksocketaddress.h" @@ -43,8 +43,8 @@ class KNetwork::KHttpProxySocketDevicePrivate { public: KResolverEntry proxy; - QCString request; - QCString reply; + TQCString request; + TQCString reply; KSocketAddress peer; KHttpProxySocketDevicePrivate() @@ -89,7 +89,7 @@ void KHttpProxySocketDevice::setProxyServer(const KResolverEntry& proxy) void KHttpProxySocketDevice::close() { - d->reply = d->request = QCString(); + d->reply = d->request = TQCString(); d->peer = KSocketAddress(); KSocketDevice::close(); } @@ -128,7 +128,7 @@ bool KHttpProxySocketDevice::connect(const KResolverEntry& address) return parseServerReply(); } -bool KHttpProxySocketDevice::connect(const QString& node, const QString& service) +bool KHttpProxySocketDevice::connect(const TQString& node, const TQString& service) { // same safety checks as above if (m_sockfd == -1 && (d->proxy.family() == AF_UNSPEC || @@ -153,11 +153,11 @@ bool KHttpProxySocketDevice::connect(const QString& node, const QString& service setState(0); // unset open flag // prepare the request - QString request = QString::fromLatin1("CONNECT %1:%2 HTTP/1.1\r\n" + TQString request = TQString::fromLatin1("CONNECT %1:%2 HTTP/1.1\r\n" "Cache-Control: no-cache\r\n" "Host: \r\n" "\r\n"); - QString node2 = node; + TQString node2 = node; if (node.contains(':')) node2 = '[' + node + ']'; @@ -216,11 +216,11 @@ bool KHttpProxySocketDevice::parseServerReply() else if (avail < 0) return false; // error! - QByteArray buf(avail); + TQByteArray buf(avail); if (peekBlock(buf.data(), avail) < 0) return false; // error! - QCString fullHeaders = d->reply + buf.data(); + TQCString fullHeaders = d->reply + buf.data(); // search for the end of the headers index = fullHeaders.find("\r\n\r\n"); if (index == -1) |