diff options
Diffstat (limited to 'kode/kwsdl/tests/google/transport.cpp')
-rw-r--r-- | kode/kwsdl/tests/google/transport.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kode/kwsdl/tests/google/transport.cpp b/kode/kwsdl/tests/google/transport.cpp index 4f4583ba2..5d7d92f2b 100644 --- a/kode/kwsdl/tests/google/transport.cpp +++ b/kode/kwsdl/tests/google/transport.cpp @@ -26,17 +26,17 @@ #include <kdebug.h> -Transport::Transport( const QString &url ) +Transport::Transport( const TQString &url ) { mUrl = url; } -void Transport::query( const QString &xml ) +void Transport::query( const TQString &xml ) { mData.truncate( 0 ); - QByteArray postData; - QDataStream stream( postData, IO_WriteOnly ); + TQByteArray postData; + TQDataStream stream( postData, IO_WriteOnly ); stream.writeRawBytes( xml.utf8(), xml.utf8().length() ); KIO::TransferJob* job = KIO::http_post( KURL( mUrl ), postData, false ); @@ -48,11 +48,11 @@ void Transport::query( const QString &xml ) job->addMetaData( "UserAgent", "KWSDL" ); job->addMetaData( "content-type", "Content-Type: text/xml; charset=utf-8" ); - connect( job, SIGNAL( data( KIO::Job*, const QByteArray& ) ), this, SLOT( slotData( KIO::Job*, const QByteArray& ) ) ); - connect( job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotResult( KIO::Job* ) ) ); + connect( job, TQT_SIGNAL( data( KIO::Job*, const TQByteArray& ) ), this, TQT_SLOT( slotData( KIO::Job*, const TQByteArray& ) ) ); + connect( job, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( slotResult( KIO::Job* ) ) ); } -void Transport::slotData( KIO::Job*, const QByteArray &data ) +void Transport::slotData( KIO::Job*, const TQByteArray &data ) { unsigned int oldSize = mData.size(); mData.resize( oldSize + data.size() ); @@ -67,7 +67,7 @@ void Transport::slotResult( KIO::Job* job ) return; } - emit result( QString::fromUtf8( mData.data(), mData.size() ) ); + emit result( TQString::fromUtf8( mData.data(), mData.size() ) ); } |