diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:37:21 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:37:21 -0600 |
commit | 86d8364ac704bdc8ad2dfcf52307d9626cfac567 (patch) | |
tree | 97d3ac2c2f60780d9a1de4f82caac7cb27534501 /kode/kwsdl/tests/google | |
parent | a9bde819f2b421dcc44741156e75eca4bb5fb4f4 (diff) | |
download | tdepim-86d8364ac704bdc8ad2dfcf52307d9626cfac567.tar.gz tdepim-86d8364ac704bdc8ad2dfcf52307d9626cfac567.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'kode/kwsdl/tests/google')
-rw-r--r-- | kode/kwsdl/tests/google/transport.cpp | 10 | ||||
-rw-r--r-- | kode/kwsdl/tests/google/transport.h | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/kode/kwsdl/tests/google/transport.cpp b/kode/kwsdl/tests/google/transport.cpp index 55d3c7a88..a37e5fc19 100644 --- a/kode/kwsdl/tests/google/transport.cpp +++ b/kode/kwsdl/tests/google/transport.cpp @@ -39,7 +39,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; @@ -48,18 +48,18 @@ void Transport::query( const TQString &xml ) job->addMetaData( "UserAgent", "KWSDL" ); 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 ) { kdWarning() << "Error occurred " << job->errorText() << endl; diff --git a/kode/kwsdl/tests/google/transport.h b/kode/kwsdl/tests/google/transport.h index d07d246c0..0b5b49fa4 100644 --- a/kode/kwsdl/tests/google/transport.h +++ b/kode/kwsdl/tests/google/transport.h @@ -40,8 +40,8 @@ class Transport : public TQObject void result( const TQString &xml ); 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; |