summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar/liboscar/transfer.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/protocols/oscar/liboscar/transfer.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/oscar/liboscar/transfer.cpp')
-rw-r--r--kopete/protocols/oscar/liboscar/transfer.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kopete/protocols/oscar/liboscar/transfer.cpp b/kopete/protocols/oscar/liboscar/transfer.cpp
index b442a97c..ac83ac06 100644
--- a/kopete/protocols/oscar/liboscar/transfer.cpp
+++ b/kopete/protocols/oscar/liboscar/transfer.cpp
@@ -19,7 +19,7 @@
#include "transfer.h"
#include <ctype.h>
-#include <qdeepcopy.h>
+#include <tqdeepcopy.h>
#include <kdebug.h>
Transfer::Transfer()
@@ -38,10 +38,10 @@ Transfer::TransferType Transfer::type() const
return Transfer::RawTransfer;
}
-QByteArray Transfer::toWire()
+TQByteArray Transfer::toWire()
{
m_wireFormat.duplicate( m_buffer->buffer(), m_buffer->length() );
- QByteArray wire = QDeepCopy<QByteArray>( m_wireFormat );
+ TQByteArray wire = TQDeepCopy<TQByteArray>( m_wireFormat );
return wire;
}
@@ -71,17 +71,17 @@ bool Transfer::dataValid() const
return m_isBufferValid;
}
-QString Transfer::toString() const
+TQString Transfer::toString() const
{
// line format:
//00 03 00 0b 00 00 90 b8 f5 9f 09 31 31 33 37 38 |;tJ�..........|
int i = 0;
- QString output = "\n";
- QString hex, ascii;
+ TQString output = "\n";
+ TQString hex, ascii;
- QByteArray::ConstIterator it;
- QByteArray::ConstIterator end = m_wireFormat.end();
+ TQByteArray::ConstIterator it;
+ TQByteArray::ConstIterator end = m_wireFormat.end();
for ( it = m_wireFormat.begin(); it != end; ++it )
{
i++;
@@ -90,7 +90,7 @@ QString Transfer::toString() const
if(c < 0x10)
hex.append("0");
- hex.append(QString("%1 ").arg(c, 0, 16));
+ hex.append(TQString("%1 ").arg(c, 0, 16));
ascii.append(isprint(c) ? c : '.');
@@ -98,8 +98,8 @@ QString Transfer::toString() const
{
output += hex + " |" + ascii + "|\n";
i=0;
- hex=QString::null;
- ascii=QString::null;
+ hex=TQString::null;
+ ascii=TQString::null;
}
}
@@ -110,7 +110,7 @@ QString Transfer::toString() const
return output;
}
-void Transfer::populateWireBuffer( int offset, const QByteArray& buffer )
+void Transfer::populateWireBuffer( int offset, const TQByteArray& buffer )
{
int j;
for ( uint i = 0; i < buffer.size(); ++i )
@@ -159,13 +159,13 @@ FlapTransfer::~FlapTransfer()
}
-QByteArray FlapTransfer::toWire()
+TQByteArray FlapTransfer::toWire()
{
//kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Buffer length is " << m_buffer.length() << endl;
//kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Buffer is " << m_buffer.toString() << endl;
m_wireFormat.truncate( 0 );
- QByteArray useBuf;
+ TQByteArray useBuf;
useBuf.duplicate( m_buffer->buffer(), m_buffer->length() );
m_flapLength = useBuf.size();
m_wireFormat.resize( 6 + m_flapLength );
@@ -178,7 +178,7 @@ QByteArray FlapTransfer::toWire()
//deepcopy the high-level buffer to the wire format buffer
populateWireBuffer( 6, useBuf );
- QByteArray wire = QDeepCopy<QByteArray>( m_wireFormat );
+ TQByteArray wire = TQDeepCopy<TQByteArray>( m_wireFormat );
return wire;
}
@@ -273,11 +273,11 @@ SnacTransfer::~SnacTransfer()
}
-QByteArray SnacTransfer::toWire()
+TQByteArray SnacTransfer::toWire()
{
m_wireFormat.truncate( 0 );
- QByteArray useBuf;
+ TQByteArray useBuf;
useBuf.duplicate( m_buffer->buffer(), m_buffer->length() );
setFlapLength( useBuf.size() + 10 );
m_wireFormat.resize( 16 + useBuf.size() );
@@ -304,7 +304,7 @@ QByteArray SnacTransfer::toWire()
//deepcopy the high-level buffer to the wire format buffer
populateWireBuffer( 16, useBuf );
- QByteArray wire = QDeepCopy<QByteArray>( m_wireFormat );
+ TQByteArray wire = TQDeepCopy<TQByteArray>( m_wireFormat );
return wire;
}