summaryrefslogtreecommitdiffstats
path: root/kode/kwsdl/kung/transport.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kode/kwsdl/kung/transport.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kode/kwsdl/kung/transport.cpp')
-rw-r--r--kode/kwsdl/kung/transport.cpp16
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() ) );
}