diff options
Diffstat (limited to 'kget/slave.cpp')
-rw-r--r-- | kget/slave.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kget/slave.cpp b/kget/slave.cpp index 0a1fa766..df0846d4 100644 --- a/kget/slave.cpp +++ b/kget/slave.cpp @@ -117,8 +117,8 @@ void Slave::run() case RETR: mDebug << " FETCHED COMMAND RETR" << endl; assert(!copyjob); - KIO::Scheduler::checkSlaveOnHold( true ); - copyjob = new KIO::GetFileJob(m_src, m_dest); + TDEIO::Scheduler::checkSlaveOnHold( true ); + copyjob = new TDEIO::GetFileJob(m_src, m_dest); Connect(); PostMessage(SLV_RESUMED); break; @@ -126,8 +126,8 @@ void Slave::run() case RETR_CACHE: mDebug << " FETCHED COMMAND RETR_CACHE" << endl; assert(!copyjob); - KIO::Scheduler::checkSlaveOnHold( true ); - copyjob = new KIO::GetFileJob(m_src, m_dest); + TDEIO::Scheduler::checkSlaveOnHold( true ); + copyjob = new TDEIO::GetFileJob(m_src, m_dest); copyjob->addMetaData("cache", "cacheonly"); Connect(); break; @@ -218,23 +218,23 @@ void Slave::Connect() mDebugIn << endl; - connect(copyjob, TQT_SIGNAL(canceled(KIO::Job *)), TQT_SLOT(slotCanceled(KIO::Job *))); - connect(copyjob, TQT_SIGNAL(connected(KIO::Job *)), TQT_SLOT(slotConnected(KIO::Job *))); - connect(copyjob, TQT_SIGNAL(result(KIO::Job *)), TQT_SLOT(slotResult(KIO::Job *))); + connect(copyjob, TQT_SIGNAL(canceled(TDEIO::Job *)), TQT_SLOT(slotCanceled(TDEIO::Job *))); + connect(copyjob, TQT_SIGNAL(connected(TDEIO::Job *)), TQT_SLOT(slotConnected(TDEIO::Job *))); + connect(copyjob, TQT_SIGNAL(result(TDEIO::Job *)), TQT_SLOT(slotResult(TDEIO::Job *))); - connect(copyjob, TQT_SIGNAL(totalSize(KIO::Job *, KIO::filesize_t)), TQT_SLOT(slotTotalSize(KIO::Job *, KIO::filesize_t))); + connect(copyjob, TQT_SIGNAL(totalSize(TDEIO::Job *, TDEIO::filesize_t)), TQT_SLOT(slotTotalSize(TDEIO::Job *, TDEIO::filesize_t))); - connect(copyjob, TQT_SIGNAL(processedSize(KIO::Job *, KIO::filesize_t)), TQT_SLOT(slotProcessedSize(KIO::Job *, KIO::filesize_t))); + connect(copyjob, TQT_SIGNAL(processedSize(TDEIO::Job *, TDEIO::filesize_t)), TQT_SLOT(slotProcessedSize(TDEIO::Job *, TDEIO::filesize_t))); - connect(copyjob, TQT_SIGNAL(speed(KIO::Job *, unsigned long)), TQT_SLOT(slotSpeed(KIO::Job *, unsigned long))); + connect(copyjob, TQT_SIGNAL(speed(TDEIO::Job *, unsigned long)), TQT_SLOT(slotSpeed(TDEIO::Job *, unsigned long))); - connect(copyjob, TQT_SIGNAL(infoMessage(KIO::Job *, const TQString &)), TQT_SLOT(slotInfoMessage(KIO::Job *, const TQString &))); + connect(copyjob, TQT_SIGNAL(infoMessage(TDEIO::Job *, const TQString &)), TQT_SLOT(slotInfoMessage(TDEIO::Job *, const TQString &))); mDebugOut << endl; } -void Slave::slotCanceled(KIO::Job *) +void Slave::slotCanceled(TDEIO::Job *) { mDebugIn << endl; @@ -242,7 +242,7 @@ void Slave::slotCanceled(KIO::Job *) mDebugOut << endl; } -void Slave::slotConnected(KIO::Job *) +void Slave::slotConnected(TDEIO::Job *) { mDebugIn << endl; @@ -250,13 +250,13 @@ void Slave::slotConnected(KIO::Job *) mDebugOut << endl; } -void Slave::slotResult(KIO::Job * job) +void Slave::slotResult(TDEIO::Job * job) { mDebugIn << endl; assert(copyjob == job); copyjob=0L; - KIO::Error error=KIO::Error(job->error()); + TDEIO::Error error=TDEIO::Error(job->error()); if (!error) { PostMessage(SLV_FINISHED); } @@ -270,11 +270,11 @@ void Slave::slotResult(KIO::Job * job) "</b></font>"; InfoMessage(tmsg); if (m_parent->retryOnError() && \ - ((error==KIO::ERR_COULD_NOT_LOGIN) || (error==KIO::ERR_SERVER_TIMEOUT))) { + ((error==TDEIO::ERR_COULD_NOT_LOGIN) || (error==TDEIO::ERR_SERVER_TIMEOUT))) { //Timeout or login error PostMessage(SLV_ERROR); } - else if (m_parent->retryOnBroken() && (error==KIO::ERR_CONNECTION_BROKEN)) { + else if (m_parent->retryOnBroken() && (error==TDEIO::ERR_CONNECTION_BROKEN)) { // Connection Broken PostMessage(SLV_BROKEN); } @@ -287,7 +287,7 @@ void Slave::slotResult(KIO::Job * job) } -void Slave::slotSpeed(KIO::Job *, unsigned long lSpeed) +void Slave::slotSpeed(TDEIO::Job *, unsigned long lSpeed) { // mDebugIn<<endl; PostMessage(SLV_PROGRESS_SPEED, lSpeed); @@ -295,7 +295,7 @@ void Slave::slotSpeed(KIO::Job *, unsigned long lSpeed) } -void Slave::slotTotalSize(KIO::Job *, KIO::filesize_t _total_size) +void Slave::slotTotalSize(TDEIO::Job *, TDEIO::filesize_t _total_size) { mDebugIn << "= " << _total_size << endl; @@ -313,7 +313,7 @@ void Slave::slotTotalSize(KIO::Job *, KIO::filesize_t _total_size) mDebugOut << endl; } -void Slave::slotProcessedSize(KIO::Job *, KIO::filesize_t _processed_size) +void Slave::slotProcessedSize(TDEIO::Job *, TDEIO::filesize_t _processed_size) { // mDebugIn<<endl; PostMessage(SLV_PROGRESS_SIZE, _processed_size); @@ -321,7 +321,7 @@ void Slave::slotProcessedSize(KIO::Job *, KIO::filesize_t _processed_size) // mDebugOut<<endl; } -void Slave::slotInfoMessage(KIO::Job *, const TQString & _msg) +void Slave::slotInfoMessage(TDEIO::Job *, const TQString & _msg) { mDebugIn << "MSG=" << _msg << endl; InfoMessage(_msg); |