From 1c1403293485f35fd53db45aaa77a01cdd9627e7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 28 Jun 2011 20:34:15 +0000 Subject: 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 --- libktorrent/mse/streamsocket.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'libktorrent/mse/streamsocket.h') diff --git a/libktorrent/mse/streamsocket.h b/libktorrent/mse/streamsocket.h index 5006a7b..6cfa6d8 100644 --- a/libktorrent/mse/streamsocket.h +++ b/libktorrent/mse/streamsocket.h @@ -20,11 +20,11 @@ #ifndef MSESTREAMSOCKET_H #define MSESTREAMSOCKET_H -#include +#include #include #include -class QString; +class TQString; using bt::Uint8; using bt::Uint16; @@ -52,9 +52,10 @@ namespace mse * not be used anymore, a SocketReader and SocketWriter should be provided, * so that reading and writing is controlled from the monitor thread. */ - class StreamSocket : public QObject,public net::SocketReader,public net::SocketWriter + class StreamSocket : public TQObject,public net::SocketReader,public net::SocketWriter { Q_OBJECT + TQ_OBJECT public: StreamSocket(); StreamSocket(int fd); @@ -99,10 +100,10 @@ namespace mse void close(); /// Connect the socket to a remote host - bool connectTo(const QString & ip,Uint16 port); + bool connectTo(const TQString & ip,Uint16 port); /// Get the IP address of the remote peer - QString getRemoteIPAddress() const; + TQString getRemoteIPAddress() const; /// Get the port of the remote peer bt::Uint16 getRemotePort() const; -- cgit v1.2.1