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/kademlia/node.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'libktorrent/kademlia/node.h') diff --git a/libktorrent/kademlia/node.h b/libktorrent/kademlia/node.h index 56f41f1..7d871e0 100644 --- a/libktorrent/kademlia/node.h +++ b/libktorrent/kademlia/node.h @@ -20,7 +20,7 @@ #ifndef DHTNODE_H #define DHTNODE_H -#include +#include #include "key.h" #include "kbucket.h" @@ -37,16 +37,17 @@ namespace dht /** * @author Joris Guisson * - * A Node represents us in the kademlia network. It contains + * A Node represents us in the kademlia network. It tqcontains * our id and 160 KBucket's. * A KBucketEntry is in node i, when the difference between our id and * the KBucketEntry's id is between 2 to the power i and 2 to the power i+1. */ - class Node : public QObject + class Node : public TQObject { Q_OBJECT + TQ_OBJECT public: - Node(RPCServer* srv,const QString & key_file); + Node(RPCServer* srv,const TQString & key_file); virtual ~Node(); /** @@ -77,10 +78,10 @@ namespace dht void refreshBuckets(DHT* dh_table); /// Save the routing table to a file - void saveTable(const QString & file); + void saveTable(const TQString & file); /// Load the routing table from a file - void loadTable(const QString & file); + void loadTable(const TQString & file); /// Get the number of entries in the routing table Uint32 getNumEntriesInRoutingTable() const {return num_entries;} -- cgit v1.2.1