diff options
Diffstat (limited to 'kode/kwsdl/kung/transport.cpp')
-rw-r--r-- | kode/kwsdl/kung/transport.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kode/kwsdl/kung/transport.cpp b/kode/kwsdl/kung/transport.cpp index 5cb414c99..fd7e545e1 100644 --- a/kode/kwsdl/kung/transport.cpp +++ b/kode/kwsdl/kung/transport.cpp @@ -22,18 +22,18 @@ #include <kdebug.h> -Transport::Transport( const QString &url ) +Transport::Transport( const TQString &url ) { mUrl = url; qDebug( "url=%s", url.latin1() ); } -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 ); @@ -45,11 +45,11 @@ void Transport::query( const QString &xml ) job->addMetaData( "UserAgent", "KDE Kung" ); 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() ); @@ -61,7 +61,7 @@ void Transport::slotResult( KIO::Job* job ) if ( job->error() != 0 ) emit error( job->errorText() ); else - emit result( QString::fromUtf8( mData.data(), mData.size() ) ); + emit result( TQString::fromUtf8( mData.data(), mData.size() ) ); } |