summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/groupwise/libgroupwise/responseprotocol.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:34 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:34 -0600
commit83677e35509b4dafac63b76995652bdf3b49f209 (patch)
tree591f1dc22278addb439726c42896376b17bb42bd /kopete/protocols/groupwise/libgroupwise/responseprotocol.cpp
parent808e453c56036211f57482ed847d54aca01bba68 (diff)
downloadtdenetwork-83677e35509b4dafac63b76995652bdf3b49f209.tar.gz
tdenetwork-83677e35509b4dafac63b76995652bdf3b49f209.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 808e453c56036211f57482ed847d54aca01bba68.
Diffstat (limited to 'kopete/protocols/groupwise/libgroupwise/responseprotocol.cpp')
-rw-r--r--kopete/protocols/groupwise/libgroupwise/responseprotocol.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kopete/protocols/groupwise/libgroupwise/responseprotocol.cpp b/kopete/protocols/groupwise/libgroupwise/responseprotocol.cpp
index a3c82b51..50788178 100644
--- a/kopete/protocols/groupwise/libgroupwise/responseprotocol.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/responseprotocol.cpp
@@ -71,7 +71,7 @@ Transfer * ResponseProtocol::parse( const TQByteArray & wire, uint & bytes )
return 0;
}
headerRest.append( line );
- debug( TQString( "- read header line - (%1) : %2" ).arg( line.length() ).arg( line.data() ) );
+ debug( TQString( "- read header line - (%1) : %2" ).tqarg( line.length() ).tqarg( line.data() ) );
}
debug( "ResponseProtocol::readResponse() header finished" );
// if it's a redirect, set flag
@@ -85,14 +85,14 @@ Transfer * ResponseProtocol::parse( const TQByteArray & wire, uint & bytes )
// other header processing ( 500! )
if ( ok && rtnCode == 500 )
{
- debug( TQString( "- server error %1" ).arg( rtnCode ) );
+ debug( TQString( "- server error %1" ).tqarg( rtnCode ) );
packetState = ServerError;
m_din.unsetDevice();
return 0;
}
if ( ok && rtnCode == 404 )
{
- debug( TQString( "- server error %1" ).arg( rtnCode ) );
+ debug( TQString( "- server error %1" ).tqarg( rtnCode ) );
packetState = ServerError;
m_din.unsetDevice();
return 0;
@@ -123,7 +123,7 @@ Transfer * ResponseProtocol::parse( const TQByteArray & wire, uint & bytes )
if ( sf )
{
tId = sf->value().toInt();
- debug( TQString( "ResponseProtocol::readResponse() - transaction ID is %1" ).arg( tId ) );
+ debug( TQString( "ResponseProtocol::readResponse() - transaction ID is %1" ).tqarg( tId ) );
m_collatingFields.remove( it );
delete sf;
}
@@ -135,7 +135,7 @@ Transfer * ResponseProtocol::parse( const TQByteArray & wire, uint & bytes )
if ( sf )
{
resultCode = sf->value().toInt();
- debug( TQString( "ResponseProtocol::readResponse() - result code is %1" ).arg( resultCode ) );
+ debug( TQString( "ResponseProtocol::readResponse() - result code is %1" ).tqarg( resultCode ) );
m_collatingFields.remove( it );
delete sf;
}
@@ -143,7 +143,7 @@ Transfer * ResponseProtocol::parse( const TQByteArray & wire, uint & bytes )
// append to inQueue
if ( tId )
{
- debug( TQString( "ResponseProtocol::readResponse() - setting state Available, got %1 fields in base array" ).arg(m_collatingFields.count() ) );
+ debug( TQString( "ResponseProtocol::readResponse() - setting state Available, got %1 fields in base array" ).tqarg(m_collatingFields.count() ) );
packetState = Available;
bytes = m_bytes;
m_din.unsetDevice();
@@ -169,7 +169,7 @@ bool ResponseProtocol::readFields( int fieldCount, Field::FieldList * list )
// if we find the beginning of a new nested list, push the current list onto m_collatingFields
debug( "ResponseProtocol::readFields()" );
if ( fieldCount > 0 )
- debug( TQString( "reading %1 fields" ).arg( fieldCount ) );
+ debug( TQString( "reading %1 fields" ).tqarg( fieldCount ) );
Field::FieldList currentList;
while ( fieldCount != 0 ) // prevents bad input data from ruining our day
{
@@ -209,7 +209,7 @@ bool ResponseProtocol::readFields( int fieldCount, Field::FieldList * list )
return false;
}
- debug( TQString( "- type: %1, method: %2, tag: %3," ).arg( type ).arg( method ).arg( tag.data() ) );
+ debug( TQString( "- type: %1, method: %2, tag: %3," ).tqarg( type ).tqarg( method ).tqarg( tag.data() ) );
// if multivalue or array
if ( type == NMFIELD_TYPE_MV || type == NMFIELD_TYPE_ARRAY )
{
@@ -223,7 +223,7 @@ bool ResponseProtocol::readFields( int fieldCount, Field::FieldList * list )
m_bytes += sizeof( TQ_UINT32 );
// create multifield
- debug( TQString( " multi field containing: %1" ).arg( val ) );
+ debug( TQString( " multi field containing: %1" ).tqarg( val ) );
Field::MultiField* m = new Field::MultiField( tag, method, 0, type );
currentList.append( m );
if ( !readFields( val, &currentList) )
@@ -248,9 +248,9 @@ bool ResponseProtocol::readFields( int fieldCount, Field::FieldList * list )
m_packetState = ProtocolError;
break;
}
- // convert to unicode - ignore the terminating NUL, because TQt<3.3.2 doesn't sanity check val.
+ // convert to tqunicode - ignore the terminating NUL, because TQt<3.3.2 doesn't sanity check val.
TQString fieldValue = TQString::fromUtf8( rawData.data(), val - 1 );
- debug( TQString( "- utf/dn single field: %1" ).arg( fieldValue ) );
+ debug( TQString( "- utf/dn single field: %1" ).tqarg( fieldValue ) );
// create singlefield
Field::SingleField* s = new Field::SingleField( tag, method, 0, type, fieldValue );
currentList.append( s );
@@ -266,7 +266,7 @@ bool ResponseProtocol::readFields( int fieldCount, Field::FieldList * list )
}
m_din >> val;
m_bytes += sizeof( TQ_UINT32 );
- debug( TQString( "- numeric field: %1" ).arg( val ) );
+ debug( TQString( "- numeric field: %1" ).tqarg( val ) );
Field::SingleField* s = new Field::SingleField( tag, method, 0, type, val );
currentList.append( s );
}