summaryrefslogtreecommitdiffstats
path: root/libktorrent/kademlia/dhttrackerbackend.cpp
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/kademlia/dhttrackerbackend.cpp
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/kademlia/dhttrackerbackend.cpp')
-rw-r--r--libktorrent/kademlia/dhttrackerbackend.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/libktorrent/kademlia/dhttrackerbackend.cpp b/libktorrent/kademlia/dhttrackerbackend.cpp
index c90e6f7..96277a3 100644
--- a/libktorrent/kademlia/dhttrackerbackend.cpp
+++ b/libktorrent/kademlia/dhttrackerbackend.cpp
@@ -18,7 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include <kurl.h>
-#include <qhostaddress.h>
+#include <tqhostaddress.h>
#include <util/log.h>
#include <util/functions.h>
#include <torrent/globals.h>
@@ -37,9 +37,9 @@ namespace dht
DHTTrackerBackend::DHTTrackerBackend(DHTBase & dh_table,kt::TorrentInterface* tor)
: dh_table(dh_table),curr_task(0),tor(tor)
{
- connect(&timer,SIGNAL(timeout()),this,SLOT(onTimeout()));
- connect(&dh_table,SIGNAL(started()),this,SLOT(manualUpdate()));
- connect(&dh_table,SIGNAL(stopped()),this,SLOT(dhtStopped()));
+ connect(&timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(onTimeout()));
+ connect(&dh_table,TQT_SIGNAL(started()),this,TQT_SLOT(manualUpdate()));
+ connect(&dh_table,TQT_SIGNAL(stopped()),this,TQT_SLOT(dhtStopped()));
started = false;
}
@@ -98,8 +98,8 @@ namespace dht
const kt::DHTNode & n = tor->getDHTNode(i);
curr_task->addDHTNode(n.ip,n.port);
}
- connect(curr_task,SIGNAL(dataReady( Task* )),this,SLOT(onDataReady( Task* )));
- connect(curr_task,SIGNAL(finished( Task* )),this,SLOT(onFinished( Task* )));
+ connect(curr_task,TQT_SIGNAL(dataReady( Task* )),this,TQT_SLOT(onDataReady( Task* )));
+ connect(curr_task,TQT_SIGNAL(finished( Task* )),this,TQT_SLOT(onFinished( Task* )));
return true;
}
@@ -127,7 +127,7 @@ namespace dht
while (curr_task->takeItem(item))
{
Uint16 port = bt::ReadUint16(item.getData(),4);
- QString ip = QHostAddress(ReadUint32(item.getData(),0)).toString();
+ TQString ip = TQHostAddress(ReadUint32(item.getData(),0)).toString();
addPeer(ip,port);
cnt++;
@@ -136,8 +136,8 @@ namespace dht
if (cnt)
{
Out(SYS_DHT|LOG_NOTICE) <<
- QString("DHT: Got %1 potential peers for torrent %2")
- .arg(cnt).arg(tor->getStats().torrent_name) << endl;
+ TQString("DHT: Got %1 potential peers for torrent %2")
+ .tqarg(cnt).tqarg(tor->getStats().torrent_name) << endl;
peersReady(this);
}
}