diff options
Diffstat (limited to 'korn/kio_count.cpp')
-rw-r--r-- | korn/kio_count.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/korn/kio_count.cpp b/korn/kio_count.cpp index a1f8e825c..bea6bf196 100644 --- a/korn/kio_count.cpp +++ b/korn/kio_count.cpp @@ -70,11 +70,11 @@ void KIO_Count::count( KKioDrop *drop ) * these are saved in the class. */ _kurl = new KURL( *_kio->_kurl ); - _metadata = new KIO::MetaData( *_kio->_metadata ); + _metadata = new TDEIO::MetaData( *_kio->_metadata ); _protocol = _kio->_protocol; KURL kurl = *_kurl; - KIO::MetaData metadata = *_metadata; + TDEIO::MetaData metadata = *_metadata; // Serup a connection if( _protocol->connectionBased( ) ) @@ -84,7 +84,7 @@ void KIO_Count::count( KKioDrop *drop ) if( kurl.port() == 0 ) kurl.setPort( _protocol->defaultPort( _kio->_ssl ) ); - if( ! ( _slave = KIO::Scheduler::getConnectedSlave( kurl, metadata ) ) ) //Forcing reload + if( ! ( _slave = TDEIO::Scheduler::getConnectedSlave( kurl, metadata ) ) ) //Forcing reload { kdWarning() << i18n( "Not able to open a kio slave for %1." ).arg( _protocol->configName() ) << endl; _kio->emitShowPassivePopup( i18n( "Not able to open a kio slave for %1." ).arg( _protocol->configName() ) ); @@ -122,17 +122,17 @@ void KIO_Count::count( KKioDrop *drop ) //Making job to fetch file-list - _job = KIO::listDir( kurl, false ); + _job = TDEIO::listDir( kurl, false ); _job->addMetaData( metadata ); - connect( _job, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( result( KIO::Job* ) ) ); - connect( _job, TQT_SIGNAL( entries( KIO::Job*, const KIO::UDSEntryList& ) ), - this, TQT_SLOT( entries( KIO::Job*, const KIO::UDSEntryList& ) ) ); + connect( _job, TQT_SIGNAL( result( TDEIO::Job* ) ), this, TQT_SLOT( result( TDEIO::Job* ) ) ); + connect( _job, TQT_SIGNAL( entries( TDEIO::Job*, const TDEIO::UDSEntryList& ) ), + this, TQT_SLOT( entries( TDEIO::Job*, const TDEIO::UDSEntryList& ) ) ); if( _protocol->connectionBased() ) - KIO::Scheduler::assignJobToSlave( _slave, _job ); + TDEIO::Scheduler::assignJobToSlave( _slave, _job ); else - KIO::Scheduler::scheduleJob( _job ); + TDEIO::Scheduler::scheduleJob( _job ); } void KIO_Count::stopActiveCount() @@ -140,16 +140,16 @@ void KIO_Count::stopActiveCount() if( !_new_mailurls ) return; - disconnect( _job, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( result( KIO::Job* ) ) ); - disconnect( _job, TQT_SIGNAL( entries( KIO::Job*, const KIO::UDSEntryList& ) ), - this, TQT_SLOT( entries( KIO::Job*, const KIO::UDSEntryList& ) ) ); + disconnect( _job, TQT_SIGNAL( result( TDEIO::Job* ) ), this, TQT_SLOT( result( TDEIO::Job* ) ) ); + disconnect( _job, TQT_SIGNAL( entries( TDEIO::Job*, const TDEIO::UDSEntryList& ) ), + this, TQT_SLOT( entries( TDEIO::Job*, const TDEIO::UDSEntryList& ) ) ); - KIO::Scheduler::cancelJob( _job ); + TDEIO::Scheduler::cancelJob( _job ); if( _slave ) { //Slave seems to be disconnected by canceling the last job of the slave - //KIO::Scheduler::disconnectSlave( _slave ); + //TDEIO::Scheduler::disconnectSlave( _slave ); _slave = 0; } @@ -163,9 +163,9 @@ void KIO_Count::stopActiveCount() void KIO_Count::showPassive( const TQString& id ) { KURL kurl = *_kio->_kurl; - KIO::MetaData metadata = *_kio->_metadata; + TDEIO::MetaData metadata = *_kio->_metadata; kurl = id; - //KIO::Slave *slave = 0; + //TDEIO::Slave *slave = 0; _kio->_protocol->readSubjectKURL( kurl, metadata ); if( kurl.port() == 0 ) @@ -191,13 +191,13 @@ void KIO_Count::disconnectSlave() return; //Slave doens't exist //Disconnect slave - KIO::Scheduler::disconnectSlave( _slave ); + TDEIO::Scheduler::disconnectSlave( _slave ); _slave = 0; _protocol = 0; } //This function is called when fetching is over -void KIO_Count::result( KIO::Job* job ) +void KIO_Count::result( TDEIO::Job* job ) { //job should be the latest job; elsewise: print an error. if( job != _job ) @@ -213,9 +213,9 @@ void KIO_Count::result( KIO::Job* job ) _kio->emitValidChanged(); } - disconnect( job, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( result( KIO::Job* ) ) ); - disconnect( job, TQT_SIGNAL( entries( KIO::Job*, const KIO::UDSEntryList& ) ), - this, TQT_SLOT( entries( KIO::Job*, const KIO::UDSEntryList& ) ) ); + disconnect( job, TQT_SIGNAL( result( TDEIO::Job* ) ), this, TQT_SLOT( result( TDEIO::Job* ) ) ); + disconnect( job, TQT_SIGNAL( entries( TDEIO::Job*, const TDEIO::UDSEntryList& ) ), + this, TQT_SLOT( entries( TDEIO::Job*, const TDEIO::UDSEntryList& ) ) ); disconnectSlave(); @@ -240,12 +240,12 @@ void KIO_Count::result( KIO::Job* job ) } //An file list is ready; now save it in _kio->_mailurls. -void KIO_Count::entries( KIO::Job* job, const KIO::UDSEntryList &list ) +void KIO_Count::entries( TDEIO::Job* job, const TDEIO::UDSEntryList &list ) { TQStringList old_list; - KIO::UDSEntryListConstIterator it1 ; - KIO::UDSEntry::ConstIterator it2 ; - KIO::MetaData metadata; + TDEIO::UDSEntryListConstIterator it1 ; + TDEIO::UDSEntry::ConstIterator it2 ; + TDEIO::MetaData metadata; KURL kurl; bool isFile; @@ -269,12 +269,12 @@ void KIO_Count::entries( KIO::Job* job, const KIO::UDSEntryList &list ) for ( it2 = (*it1).begin() ; it2 != (*it1).end() ; it2++ ) { - if( (*it2).m_uds == KIO::UDS_FILE_TYPE && + if( (*it2).m_uds == TDEIO::UDS_FILE_TYPE && ((long)(*it2).m_long & S_IFREG ) ) isFile=true; - else if( (*it2).m_uds == KIO::UDS_URL ) + else if( (*it2).m_uds == TDEIO::UDS_URL ) fileinfo.name = (*it2).m_str; - else if( (*it2).m_uds == KIO::UDS_NAME ) + else if( (*it2).m_uds == TDEIO::UDS_NAME ) { //The file kioslave doesn't return UDS_URL. kurl = *_kurl; metadata = *_metadata; @@ -282,7 +282,7 @@ void KIO_Count::entries( KIO::Job* job, const KIO::UDSEntryList &list ) kurl.setPath ( kurl.path() + '/' + (*it2).m_str ); fileinfo.name = kurl.url(); } - else if( (*it2).m_uds == KIO::UDS_SIZE ) + else if( (*it2).m_uds == TDEIO::UDS_SIZE ) { fileinfo.size = (*it2).m_long; } |