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/dht.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'libktorrent/kademlia/dht.h') diff --git a/libktorrent/kademlia/dht.h b/libktorrent/kademlia/dht.h index 8642836..11daf82 100644 --- a/libktorrent/kademlia/dht.h +++ b/libktorrent/kademlia/dht.h @@ -20,9 +20,9 @@ #ifndef DHTDHT_H #define DHTDHT_H -#include -#include -#include +#include +#include +#include #include #include #include "key.h" @@ -64,6 +64,7 @@ namespace dht class DHT : public DHTBase { Q_OBJECT + TQ_OBJECT public: DHT(); virtual ~DHT(); @@ -81,7 +82,7 @@ namespace dht * @param ip The IP of the peer * @param port The port in the PORT message */ - void portRecieved(const QString & ip,bt::Uint16 port); + void portRecieved(const TQString & ip,bt::Uint16 port); /** * Do an announce on the DHT network @@ -107,16 +108,16 @@ namespace dht /// See if it is possible to start a task bool canStartTask() const; - void start(const QString & table,const QString & key_file,bt::Uint16 port); + void start(const TQString & table,const TQString & key_file,bt::Uint16 port); void stop(); - void addDHTNode(const QString & host,bt::Uint16 hport); + void addDHTNode(const TQString & host,bt::Uint16 hport); /** * Returns maxNodes number of nodes * that are closest to ourselves and are good. - * @param maxNodes maximum nr of nodes in QMap to return. + * @param maxNodes maximum nr of nodes in TQMap to return. */ - QMap getClosestGoodNodes(int maxNodes); + TQMap getClosestGoodNodes(int maxNodes); private slots: void update(); @@ -127,8 +128,8 @@ namespace dht Database* db; TaskManager* tman; bt::Timer expire_timer; - QString table_file; - QTimer update_timer; + TQString table_file; + TQTimer update_timer; }; } -- cgit v1.2.1