summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/msn/p2p.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kopete/protocols/msn/p2p.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/msn/p2p.cpp')
-rw-r--r--kopete/protocols/msn/p2p.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kopete/protocols/msn/p2p.cpp b/kopete/protocols/msn/p2p.cpp
index 1aa3ddae..7de59a20 100644
--- a/kopete/protocols/msn/p2p.cpp
+++ b/kopete/protocols/msn/p2p.cpp
@@ -26,7 +26,7 @@ using P2P::TransferType;
// Kde includes
#include <kbufferedsocket.h>
#include <kdebug.h>
-// Qt includes
+// TQt includes
#include <tqfile.h>
// Kopete includes
@@ -44,7 +44,7 @@ TQString P2P::Uid::createUid()
+ TQString::number((unsigned long int)rand()%0xAAFF+0x1111, 16)).upper();
}
-TransferContext::TransferContext(const TQString &contact, P2P::Dispatcher *dispatcher, Q_UINT32 sessionId)
+TransferContext::TransferContext(const TQString &contact, P2P::Dispatcher *dispatcher, TQ_UINT32 sessionId)
: TQObject(dispatcher) ,
m_sessionId(sessionId) ,
m_identifier(0) ,
@@ -206,7 +206,7 @@ void TransferContext::sendDataPreparation()
m_dispatcher->callbackChannel()->send(stream);
}
-void TransferContext::sendMessage(MessageType type, const TQString& content, Q_INT32 flag, Q_INT32 appId)
+void TransferContext::sendMessage(MessageType type, const TQString& content, TQ_INT32 flag, TQ_INT32 appId)
{
Message outbound;
if(appId != 0){
@@ -318,8 +318,8 @@ void TransferContext::sendMessage(MessageType type, const TQString& content, Q_I
void TransferContext::sendMessage(Message& outbound, const TQByteArray& body)
{
- Q_INT64 offset = 0L, bytesLeft = outbound.header.totalDataSize;
- Q_INT16 chunkLength = 1202;
+ TQ_INT64 offset = 0L, bytesLeft = outbound.header.totalDataSize;
+ TQ_INT16 chunkLength = 1202;
// Split the outbound message if necessary.
while(bytesLeft > 0L)