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/dhtbase.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'libktorrent/kademlia/dhtbase.h') diff --git a/libktorrent/kademlia/dhtbase.h b/libktorrent/kademlia/dhtbase.h index dfa880a..05699c8 100644 --- a/libktorrent/kademlia/dhtbase.h +++ b/libktorrent/kademlia/dhtbase.h @@ -20,10 +20,10 @@ #ifndef DHTDHTBASE_H #define DHTDHTBASE_H -#include +#include #include -class QString; +class TQString; namespace bt { @@ -48,9 +48,10 @@ namespace dht * Interface for DHT class, this is to keep other things separate from the inner workings * of the DHT. */ - class DHTBase : public QObject + class DHTBase : public TQObject { Q_OBJECT + TQ_OBJECT public: DHTBase(); virtual ~DHTBase(); @@ -62,7 +63,7 @@ namespace dht * @param key_file The file where the key is stored * @param port The port to use */ - virtual void start(const QString & table,const QString & key_file,bt::Uint16 port) = 0; + virtual void start(const TQString & table,const TQString & key_file,bt::Uint16 port) = 0; /** * Stop the DHT @@ -79,7 +80,7 @@ namespace dht * @param ip The IP of the peer * @param port The port in the PORT message */ - virtual void portRecieved(const QString & ip,bt::Uint16 port) = 0; + virtual void portRecieved(const TQString & ip,bt::Uint16 port) = 0; /** * Do an announce on the DHT network @@ -105,14 +106,14 @@ namespace dht * @param host The hostname or ip * @param hport The port of the host */ - virtual void addDHTNode(const QString & host,bt::Uint16 hport) = 0; + virtual void addDHTNode(const TQString & host,bt::Uint16 hport) = 0; /** * 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. */ - virtual QMap getClosestGoodNodes(int maxNodes) = 0; + virtual TQMap getClosestGoodNodes(int maxNodes) = 0; signals: void started(); -- cgit v1.2.1