diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
commit | 1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch) | |
tree | 38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/torrent/packetwriter.h | |
parent | 894f94545727610df22c4f73911d62d58266f695 (diff) | |
download | ktorrent-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/packetwriter.h')
-rw-r--r-- | libktorrent/torrent/packetwriter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libktorrent/torrent/packetwriter.h b/libktorrent/torrent/packetwriter.h index 9b77731..8330b65 100644 --- a/libktorrent/torrent/packetwriter.h +++ b/libktorrent/torrent/packetwriter.h @@ -21,7 +21,7 @@ #define BTPACKETWRITER_H #include <list> -#include <qmutex.h> +#include <tqmutex.h> #include <net/bufferedsocket.h> #include "globals.h" @@ -45,7 +45,7 @@ namespace bt Uint32 ctrl_packets_sent; mutable Uint32 uploaded; mutable Uint32 uploaded_non_data; - mutable QMutex mutex; + mutable TQMutex mutex; public: PacketWriter(Peer* peer); virtual ~PacketWriter(); @@ -145,7 +145,7 @@ namespace bt void sendExtProtHandshake(Uint16 port,bool pex_on = true); /// Send an extended protocol message - void sendExtProtMsg(Uint8 id,const QByteArray & data); + void sendExtProtMsg(Uint8 id,const TQByteArray & data); /// Get the number of packets which need to be written Uint32 getNumPacketsToWrite() const; |