summaryrefslogtreecommitdiffstats
path: root/src/upnp/httprequest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/upnp/httprequest.cpp')
-rw-r--r--src/upnp/httprequest.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/upnp/httprequest.cpp b/src/upnp/httprequest.cpp
index 5a612b0..bb411ca 100644
--- a/src/upnp/httprequest.cpp
+++ b/src/upnp/httprequest.cpp
@@ -17,7 +17,7 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <qstringlist.h>
+#include <ntqstringlist.h>
#include "httprequest.h"
#include "../functions.h"
#include <kdebug.h>
@@ -27,10 +27,10 @@
namespace bt
{
- HTTPRequest::HTTPRequest(const QString & hdr,const QString & payload,const QString & host,Uint16 port,bool verbose, bool fwd) : hdr(hdr),payload(payload),verbose(verbose),fwd(fwd)
+ HTTPRequest::HTTPRequest(const TQString & hdr,const TQString & payload,const TQString & host,Uint16 port,bool verbose, bool fwd) : hdr(hdr),payload(payload),verbose(verbose),fwd(fwd)
{
KSocks::self()->disableSocks();
- sock = new KNetwork::KStreamSocket(host,QString::number(port),this,0);
+ sock = new KNetwork::KStreamSocket(host,TQString::number(port),this,0);
sock->enableRead(true);
sock->enableWrite(true);
sock->setTimeout(30000);
@@ -57,9 +57,9 @@ namespace bt
void HTTPRequest::onConnect(const KResolverEntry&)
{
payload = payload.replace("$LOCAL_IP",sock->localAddress().nodeName());
- hdr = hdr.replace("$CONTENT_LENGTH",QString::number(payload.length()));
+ hdr = hdr.replace("$CONTENT_LENGTH",TQString::number(payload.length()));
- QString req = hdr + payload;
+ TQString req = hdr + payload;
/* if (verbose)
{
KdDebug() << "Sending " << endl;
@@ -80,8 +80,8 @@ namespace bt
Array<char> data(ba);
ba = sock->readBlock(data,ba);
- QString strdata((const char*)data);
- QStringList sl = QStringList::split("\r\n",strdata,false);
+ TQString strdata((const char*)data);
+ TQStringList sl = TQStringList::split("\r\n",strdata,false);
/* if (verbose)
{