summaryrefslogtreecommitdiffstats
path: root/libktorrent/torrent/udptrackersocket.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/udptrackersocket.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/udptrackersocket.h')
-rw-r--r--libktorrent/torrent/udptrackersocket.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/libktorrent/torrent/udptrackersocket.h b/libktorrent/torrent/udptrackersocket.h
index 1537598..7992cdd 100644
--- a/libktorrent/torrent/udptrackersocket.h
+++ b/libktorrent/torrent/udptrackersocket.h
@@ -20,9 +20,9 @@
#ifndef BTUDPTRACKERSOCKET_H
#define BTUDPTRACKERSOCKET_H
-#include <qobject.h>
-#include <qmap.h>
-#include <qcstring.h>
+#include <tqobject.h>
+#include <tqmap.h>
+#include <tqcstring.h>
#include <util/constants.h>
@@ -51,9 +51,10 @@ namespace bt
*
* Class which handles communication with one or more UDP trackers.
*/
- class UDPTrackerSocket : public QObject
+ class UDPTrackerSocket : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
UDPTrackerSocket();
virtual ~UDPTrackerSocket();
@@ -114,24 +115,24 @@ namespace bt
* @param tid The transaction_id
* @param buf The data
*/
- void announceRecieved(Int32 tid,const QByteArray & buf);
+ void announceRecieved(Int32 tid,const TQByteArray & buf);
/**
* Signal emitted, when an error occurs during a transaction.
* @param tid The transaction_id
* @param error_string Potential error string
*/
- void error(Int32 tid,const QString & error_string);
+ void error(Int32 tid,const TQString & error_string);
private:
- void handleConnect(const QByteArray & buf);
- void handleAnnounce(const QByteArray & buf);
- void handleError(const QByteArray & buf);
+ void handleConnect(const TQByteArray & buf);
+ void handleAnnounce(const TQByteArray & buf);
+ void handleError(const TQByteArray & buf);
private:
Uint16 udp_port;
KNetwork::KDatagramSocket* sock;
- QMap<Int32,Action> transactions;
+ TQMap<Int32,Action> transactions;
static Uint16 port;
};
}