diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
commit | 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch) | |
tree | 073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kopete/protocols/msn/messageformatter.cpp | |
parent | 3467e6464beac3a162839bf7078e22e3a74d73e7 (diff) | |
download | tdenetwork-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/messageformatter.cpp')
-rw-r--r-- | kopete/protocols/msn/messageformatter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kopete/protocols/msn/messageformatter.cpp b/kopete/protocols/msn/messageformatter.cpp index 7d830ea6..f869d87e 100644 --- a/kopete/protocols/msn/messageformatter.cpp +++ b/kopete/protocols/msn/messageformatter.cpp @@ -16,7 +16,7 @@ #include "messageformatter.h" #include "p2p.h" -// Qt includes +// TQt includes #include <tqdatastream.h> #include <tqregexp.h> @@ -26,7 +26,7 @@ using P2P::MessageFormatter; using P2P::Message; -MessageFormatter::MessageFormatter(TQObject *parent, const char *name) : TQObject(parent, name) +MessageFormatter::MessageFormatter(TQObject *tqparent, const char *name) : TQObject(tqparent, name) {} MessageFormatter::~MessageFormatter() @@ -36,7 +36,7 @@ Message MessageFormatter::readMessage(const TQByteArray& stream, bool compact) { Message inbound; - Q_UINT32 index = 0; + TQ_UINT32 index = 0; if(compact == false) { // Determine the end position of the message header. @@ -75,7 +75,7 @@ Message MessageFormatter::readMessage(const TQByteArray& stream, bool compact) reader.setByteOrder(TQDataStream::LittleEndian); // Seek to the start position of the message // transport header. - reader.device()->at(index); + reader.tqdevice()->tqat(index); // Read the message transport headers from the stream. reader >> inbound.header.sessionId; @@ -143,7 +143,7 @@ void MessageFormatter::writeMessage(const Message& message, TQByteArray& stream, // Set the capacity of the message buffer. stream.resize(4 + 48 + message.body.size()); // Write the message size to the stream. - writer << (Q_INT32)(48+message.body.size()); + writer << (TQ_INT32)(48+message.body.size()); } |