summaryrefslogtreecommitdiffstats
path: root/plugins/webinterface/httpclienthandler.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
commit1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch)
tree38559cd68cd4f63023fb5f6375def9db3b8b491e /plugins/webinterface/httpclienthandler.h
parent894f94545727610df22c4f73911d62d58266f695 (diff)
downloadktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.tar.gz
ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.zip
TQt4 port ktorrent
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'plugins/webinterface/httpclienthandler.h')
-rw-r--r--plugins/webinterface/httpclienthandler.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/plugins/webinterface/httpclienthandler.h b/plugins/webinterface/httpclienthandler.h
index cacf463..c76be5c 100644
--- a/plugins/webinterface/httpclienthandler.h
+++ b/plugins/webinterface/httpclienthandler.h
@@ -21,12 +21,12 @@
#define KTHTTPCLIENTHANDLER_H
-#include <qhttp.h>
-#include <qobject.h>
+#include <tqhttp.h>
+#include <tqobject.h>
#include <util/constants.h>
#include "httpresponseheader.h"
-class QSocket;
+class TQSocket;
namespace kt
@@ -38,9 +38,10 @@ namespace kt
/**
@author Joris Guisson <[email protected]>
*/
- class HttpClientHandler : public QObject
+ class HttpClientHandler : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
enum State
{
WAITING_FOR_REQUEST,
@@ -48,20 +49,20 @@ namespace kt
PROCESSING_PHP
};
public:
- HttpClientHandler(HttpServer* srv,QSocket* sock);
+ HttpClientHandler(HttpServer* srv,TQSocket* sock);
virtual ~HttpClientHandler();
void readyToRead();
- bool sendFile(HttpResponseHeader & hdr,const QString & full_path);
+ bool sendFile(HttpResponseHeader & hdr,const TQString & full_path);
void sendResponse(const HttpResponseHeader & hdr);
- void send404(HttpResponseHeader & hdr,const QString & path);
+ void send404(HttpResponseHeader & hdr,const TQString & path);
void send500(HttpResponseHeader & hdr);
void executePHPScript(PhpInterface* php_iface,
HttpResponseHeader & hdr,
- const QString & php_exe,
- const QString & php_file,
- const QMap<QString,QString> & args);
+ const TQString & php_exe,
+ const TQString & php_file,
+ const TQMap<TQString,TQString> & args);
private:
void handleRequest();
@@ -71,11 +72,11 @@ namespace kt
private:
HttpServer* srv;
- QSocket* client;
+ TQSocket* client;
State state;
- QHttpRequestHeader header;
- QString header_data;
- QByteArray request_data;
+ TQHttpRequestHeader header;
+ TQString header_data;
+ TQByteArray request_data;
bt::Uint32 bytes_read;
PhpHandler* php;
HttpResponseHeader php_response_hdr;