diff options
Diffstat (limited to 'korn/kio_single_subject.cpp')
-rw-r--r-- | korn/kio_single_subject.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/korn/kio_single_subject.cpp b/korn/kio_single_subject.cpp index 02a6a103d..45ca047fc 100644 --- a/korn/kio_single_subject.cpp +++ b/korn/kio_single_subject.cpp @@ -36,12 +36,12 @@ #include <tqstring.h> KIO_Single_Subject::KIO_Single_Subject( TQObject * parent, const char * name, - KURL &kurl, KIO::MetaData &metadata, const KIO_Protocol * protocol, KIO::Slave *& slave, + KURL &kurl, TDEIO::MetaData &metadata, const KIO_Protocol * protocol, TDEIO::Slave *& slave, const TQString &url, const long size ) : TQObject( parent, name ) { _kurl = new KURL( kurl ); - _metadata = new KIO::MetaData( metadata ); + _metadata = new TDEIO::MetaData( metadata ); _protocol = protocol; _name = new TQString( url ); _size = size; @@ -53,26 +53,26 @@ KIO_Single_Subject::KIO_Single_Subject( TQObject * parent, const char * name, KIO_Single_Subject::~KIO_Single_Subject( ) { if( _job ) - KIO::Scheduler::cancelJob( _job ); + TDEIO::Scheduler::cancelJob( _job ); delete _kurl; delete _metadata; delete _name; delete _message; } -void KIO_Single_Subject::init( KIO::Slave *& slave) +void KIO_Single_Subject::init( TDEIO::Slave *& slave) { - _job = KIO::get( *_kurl, false, false ); + _job = TDEIO::get( *_kurl, false, false ); _job->addMetaData( *_metadata ); - connect( _job, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_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( TDEIO::Job* ) ), this, TQT_SLOT( slotResult( TDEIO::Job* ) ) ); + connect( _job, TQT_SIGNAL( data (TDEIO::Job *, const TQByteArray &) ), + this, TQT_SLOT( slotData(TDEIO::Job *, const TQByteArray &) ) ); if( _protocol->connectionBased( ) && slave ) - KIO::Scheduler::assignJobToSlave( slave , _job ); + TDEIO::Scheduler::assignJobToSlave( slave , _job ); else - KIO::Scheduler::scheduleJob( _job ); + TDEIO::Scheduler::scheduleJob( _job ); } @@ -122,7 +122,7 @@ void KIO_Single_Subject::parseMail( TQString * message, KornMailSubject *subject subject->setHeader( *message, fullMessage ); } -void KIO_Single_Subject::slotData( KIO::Job* job, const TQByteArray& data ) +void KIO_Single_Subject::slotData( TDEIO::Job* job, const TQByteArray& data ) { if( job != _job ) kdWarning() << i18n( "Got invalid job; something strange happened?" ) << endl; @@ -130,8 +130,8 @@ void KIO_Single_Subject::slotData( KIO::Job* job, const TQByteArray& data ) _message->append( data ); } -//KIO::Scheduler::disconnectSlave missing if connection stops -void KIO_Single_Subject::slotResult( KIO::Job *job ) +//TDEIO::Scheduler::disconnectSlave missing if connection stops +void KIO_Single_Subject::slotResult( TDEIO::Job *job ) { if( job != _job ) kdWarning() << i18n( "Got invalid job; something strange happened?" ) << endl; |