summaryrefslogtreecommitdiffstats
path: root/libktorrent/kademlia/database.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/database.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/database.h')
-rw-r--r--libktorrent/kademlia/database.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libktorrent/kademlia/database.h b/libktorrent/kademlia/database.h
index 94e6b3f..12e8373 100644
--- a/libktorrent/kademlia/database.h
+++ b/libktorrent/kademlia/database.h
@@ -20,8 +20,8 @@
#ifndef DHTDATABASE_H
#define DHTDATABASE_H
-#include <qmap.h>
-#include <qvaluelist.h>
+#include <tqmap.h>
+#include <tqvaluelist.h>
#include <util/ptrmap.h>
#include <util/constants.h>
#include <util/array.h>
@@ -58,7 +58,7 @@ namespace dht
DBItem & operator = (const DBItem & item);
};
- typedef QValueList<DBItem> DBItemList;
+ typedef TQValueList<DBItem> DBItemList;
/**
* @author Joris Guisson
@@ -68,7 +68,7 @@ namespace dht
class Database
{
bt::PtrMap<dht::Key,DBItemList> items;
- QMap<dht::Key,bt::TimeStamp> tokens;
+ TQMap<dht::Key,bt::TimeStamp> tokens;
public:
Database();
virtual ~Database();
@@ -118,7 +118,7 @@ namespace dht
bool checkToken(const dht::Key & token,bt::Uint32 ip,bt::Uint16 port);
/// Test wether or not the DB contains a key
- bool contains(const dht::Key & key) const;
+ bool tqcontains(const dht::Key & key) const;
/// Insert an empty item (only if it isn't already in the DB)
void insert(const dht::Key & key);