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/torrent/udptracker.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'libktorrent/torrent/udptracker.h') diff --git a/libktorrent/torrent/udptracker.h b/libktorrent/torrent/udptracker.h index 5107fb9..24dab97 100644 --- a/libktorrent/torrent/udptracker.h +++ b/libktorrent/torrent/udptracker.h @@ -21,9 +21,9 @@ #define BTUDPTRACKER_H #include -#include -#include -#include +#include +#include +#include #include #include "tracker.h" #include "globals.h" @@ -62,6 +62,7 @@ namespace bt class UDPTracker : public Tracker { Q_OBJECT + TQ_OBJECT public: UDPTracker(const KURL & url,kt::TorrentInterface* tor,const PeerID & id,int tier); virtual ~UDPTracker(); @@ -76,8 +77,8 @@ namespace bt private slots: void onConnTimeout(); void connectRecieved(Int32 tid,Int64 connection_id); - void announceRecieved(Int32 tid,const QByteArray & buf); - void onError(Int32 tid,const QString & error_string); + void announceRecieved(Int32 tid,const TQByteArray & buf); + void onError(Int32 tid,const TQString & error_string); void onResolverResults(KResolverResults res); private: @@ -93,7 +94,7 @@ namespace bt Uint32 data_read; int n; - QTimer conn_timer; + TQTimer conn_timer; Event event; static UDPTrackerSocket* socket; -- cgit v1.2.1