diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
commit | 1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch) | |
tree | 38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/torrent/peer.cpp | |
parent | 894f94545727610df22c4f73911d62d58266f695 (diff) | |
download | ktorrent-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/torrent/peer.cpp')
-rw-r--r-- | libktorrent/torrent/peer.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libktorrent/torrent/peer.cpp b/libktorrent/torrent/peer.cpp index 7a5727b..6e5f519 100644 --- a/libktorrent/torrent/peer.cpp +++ b/libktorrent/torrent/peer.cpp @@ -66,7 +66,7 @@ namespace bt time_choked = GetCurrentTime(); time_unchoked = 0; - connect_time = QTime::currentTime(); + connect_time = TQTime::currentTime(); //sock->attachPeer(this); stats.client = peer_id.identifyClient(); stats.ip_address = getIPAddresss(); @@ -353,7 +353,7 @@ namespace bt return; } - QByteArray tmp; + TQByteArray tmp; tmp.setRawData((const char*)packet,size); BNode* node = 0; try @@ -365,7 +365,7 @@ namespace bt BDictNode* dict = (BDictNode*)node; // handshake packet, so just check if the peer supports ut_pex - dict = dict->getDict("m"); + dict = dict->getDict(TQString("m")); BValueNode* val = 0; if (dict && (val = dict->getValue("ut_pex"))) { @@ -490,12 +490,12 @@ namespace bt return pieces.allOn(); } - QString Peer::getIPAddresss() const + TQString Peer::getIPAddresss() const { if (sock) return sock->getRemoteIPAddress(); else - return QString::null; + return TQString(); } Uint16 Peer::getPort() const @@ -555,7 +555,7 @@ namespace bt gotPortPacket(sock->getRemoteIPAddress(),sock->getRemotePort()); } - void Peer::emitPex(const QByteArray & data) + void Peer::emitPex(const TQByteArray & data) { pex(data); } |