diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
commit | 1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch) | |
tree | 38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/kademlia/database.h | |
parent | 894f94545727610df22c4f73911d62d58266f695 (diff) | |
download | ktorrent-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.h | 10 |
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); |