summaryrefslogtreecommitdiffstats
path: root/libktorrent/torrent/udptracker.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/torrent/udptracker.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/torrent/udptracker.h')
-rw-r--r--libktorrent/torrent/udptracker.h13
1 files changed, 7 insertions, 6 deletions
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 <kurl.h>
-#include <qvaluelist.h>
-#include <qcstring.h>
-#include <qtimer.h>
+#include <tqvaluelist.h>
+#include <tqcstring.h>
+#include <tqtimer.h>
#include <ksocketaddress.h>
#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;