summaryrefslogtreecommitdiffstats
path: root/libktorrent/kademlia/kbucket.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/kbucket.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/kbucket.h')
-rw-r--r--libktorrent/kademlia/kbucket.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/libktorrent/kademlia/kbucket.h b/libktorrent/kademlia/kbucket.h
index 139ce10..cfd932d 100644
--- a/libktorrent/kademlia/kbucket.h
+++ b/libktorrent/kademlia/kbucket.h
@@ -20,7 +20,7 @@
#ifndef DHTKBUCKET_H
#define DHTKBUCKET_H
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include <util/constants.h>
#include <ksocketaddress.h>
#include "key.h"
@@ -143,12 +143,13 @@ namespace dht
class KBucket : public RPCCallListener
{
Q_OBJECT
+ TQ_OBJECT
Uint32 idx;
- QValueList<KBucketEntry> entries,pending_entries;
+ TQValueList<KBucketEntry> entries,pending_entries;
RPCServer* srv;
Node* node;
- QMap<RPCCall*,KBucketEntry> pending_entries_busy_pinging;
+ TQMap<RPCCall*,KBucketEntry> pending_entries_busy_pinging;
mutable bt::TimeStamp last_modified;
Task* refresh_task;
public:
@@ -168,7 +169,7 @@ namespace dht
Uint32 getNumEntries() const {return entries.count();}
/// See if this bucket contains an entry
- bool contains(const KBucketEntry & entry) const;
+ bool tqcontains(const KBucketEntry & entry) const;
/**
* Find the K closest entries to a key and store them in the KClosestNodesSearch