summaryrefslogtreecommitdiffstats
path: root/libktorrent/mse/streamsocket.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 /libktorrent/mse/streamsocket.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 'libktorrent/mse/streamsocket.h')
-rw-r--r--libktorrent/mse/streamsocket.h11
1 files changed, 6 insertions, 5 deletions
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 <qobject.h>
+#include <tqobject.h>
#include <util/constants.h>
#include <net/bufferedsocket.h>
-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;