summaryrefslogtreecommitdiffstats
path: root/libktorrent/kademlia/node.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/kademlia/node.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/kademlia/node.h')
-rw-r--r--libktorrent/kademlia/node.h13
1 files changed, 7 insertions, 6 deletions
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 <qobject.h>
+#include <tqobject.h>
#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;}