From 86d8364ac704bdc8ad2dfcf52307d9626cfac567 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 25 Jan 2013 00:37:21 -0600 Subject: Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4 --- kode/kwsdl/kung/binaryinputfield.cpp | 10 +++++----- kode/kwsdl/kung/transport.cpp | 10 +++++----- kode/kwsdl/kung/transport.h | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'kode/kwsdl/kung') diff --git a/kode/kwsdl/kung/binaryinputfield.cpp b/kode/kwsdl/kung/binaryinputfield.cpp index ea7c17394..b053f5d1e 100644 --- a/kode/kwsdl/kung/binaryinputfield.cpp +++ b/kode/kwsdl/kung/binaryinputfield.cpp @@ -151,7 +151,7 @@ void BinaryWidget::load() return; TQString tempFile; - if ( KIO::NetAccess::download( url, tempFile, this ) ) { + if ( TDEIO::NetAccess::download( url, tempFile, this ) ) { TQFile file( tempFile ); if ( !file.open( IO_ReadOnly ) ) { KMessageBox::error( this, i18n( "Unable to open file %1" ).arg( url.url() ) ); @@ -162,11 +162,11 @@ void BinaryWidget::load() setData( data ); file.close(); - KIO::NetAccess::removeTempFile( tempFile ); + TDEIO::NetAccess::removeTempFile( tempFile ); emit valueChanged( data ); } else - KMessageBox::error( this, KIO::NetAccess::lastErrorString() ); + KMessageBox::error( this, TDEIO::NetAccess::lastErrorString() ); } void BinaryWidget::save() @@ -179,8 +179,8 @@ void BinaryWidget::save() tempFile.file()->writeBlock( mData ); tempFile.close(); - if ( !KIO::NetAccess::upload( tempFile.name(), url, this ) ) - KMessageBox::error( this, KIO::NetAccess::lastErrorString() ); + if ( !TDEIO::NetAccess::upload( tempFile.name(), url, this ) ) + KMessageBox::error( this, TDEIO::NetAccess::lastErrorString() ); } #include "binaryinputfield.moc" diff --git a/kode/kwsdl/kung/transport.cpp b/kode/kwsdl/kung/transport.cpp index 76f3acc82..32cfbe6ef 100644 --- a/kode/kwsdl/kung/transport.cpp +++ b/kode/kwsdl/kung/transport.cpp @@ -36,7 +36,7 @@ void Transport::query( const TQString &xml ) TQDataStream stream( postData, IO_WriteOnly ); stream.writeRawBytes( xml.utf8(), xml.utf8().length() ); - KIO::TransferJob* job = KIO::http_post( KURL( mUrl ), postData, false ); + TDEIO::TransferJob* job = TDEIO::http_post( KURL( mUrl ), postData, false ); if ( !job ) { kdWarning() << "Unable to create KIO job for " << mUrl << endl; return; @@ -45,18 +45,18 @@ void Transport::query( const TQString &xml ) job->addMetaData( "UserAgent", "KDE Kung" ); job->addMetaData( "content-type", "Content-Type: text/xml; charset=utf-8" ); - 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* ) ) ); + connect( job, TQT_SIGNAL( data( TDEIO::Job*, const TQByteArray& ) ), this, TQT_SLOT( slotData( TDEIO::Job*, const TQByteArray& ) ) ); + connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ), this, TQT_SLOT( slotResult( TDEIO::Job* ) ) ); } -void Transport::slotData( KIO::Job*, const TQByteArray &data ) +void Transport::slotData( TDEIO::Job*, const TQByteArray &data ) { unsigned int oldSize = mData.size(); mData.resize( oldSize + data.size() ); memcpy( mData.data() + oldSize, data.data(), data.size() ); } -void Transport::slotResult( KIO::Job* job ) +void Transport::slotResult( TDEIO::Job* job ) { if ( job->error() != 0 ) emit error( job->errorText() ); diff --git a/kode/kwsdl/kung/transport.h b/kode/kwsdl/kung/transport.h index 3047b8815..71c4fa9de 100644 --- a/kode/kwsdl/kung/transport.h +++ b/kode/kwsdl/kung/transport.h @@ -37,8 +37,8 @@ class Transport : public TQObject void error( const TQString &errorMsg ); private slots: - void slotData( KIO::Job*, const TQByteArray &data ); - void slotResult( KIO::Job* job ); + void slotData( TDEIO::Job*, const TQByteArray &data ); + void slotResult( TDEIO::Job* job ); private: TQString mUrl; -- cgit v1.2.1