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/kademlia/rpcserver.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/kademlia/rpcserver.h')
-rw-r--r-- | libktorrent/kademlia/rpcserver.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libktorrent/kademlia/rpcserver.h b/libktorrent/kademlia/rpcserver.h index 4e54076..393db7a 100644 --- a/libktorrent/kademlia/rpcserver.h +++ b/libktorrent/kademlia/rpcserver.h @@ -20,7 +20,7 @@ #ifndef DHTRPCSERVER_H #define DHTRPCSERVER_H -#include <qptrlist.h> +#include <tqptrlist.h> #include <kdatagramsocket.h> #include <util/constants.h> #include <util/array.h> @@ -52,11 +52,12 @@ namespace dht * * Class to handle incoming and outgoing RPC messages. */ - class RPCServer : public QObject + class RPCServer : public TQObject { Q_OBJECT + TQ_OBJECT public: - RPCServer(DHT* dh_table,Uint16 port,QObject *parent = 0); + RPCServer(DHT* dh_table,Uint16 port,TQObject *tqparent = 0); virtual ~RPCServer(); /// Start the server @@ -105,14 +106,14 @@ namespace dht void readPacket(); private: - void send(const KNetwork::KSocketAddress & addr,const QByteArray & msg); + void send(const KNetwork::KSocketAddress & addr,const TQByteArray & msg); void doQueuedCalls(); private: KDatagramSocket* sock; DHT* dh_table; bt::PtrMap<bt::Uint8,RPCCall> calls; - QPtrList<RPCCall> call_queue; + TQPtrList<RPCCall> call_queue; bt::Uint8 next_mtid; bt::Uint16 port; }; |