diff options
author | Timothy Pearson <[email protected]> | 2013-01-25 00:36:20 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-25 00:36:20 -0600 |
commit | f21aaec952493cb5688c73de6e82a569ddbd7fb2 (patch) | |
tree | 78ccb5117063da3e08e3277e11054b912a9f2ae7 /kget/transfer.cpp | |
parent | c48e769eb275917717e2b55eb869f7e559293ac8 (diff) | |
download | tdenetwork-f21aaec952493cb5688c73de6e82a569ddbd7fb2.tar.gz tdenetwork-f21aaec952493cb5688c73de6e82a569ddbd7fb2.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'kget/transfer.cpp')
-rw-r--r-- | kget/transfer.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kget/transfer.cpp b/kget/transfer.cpp index 0043291d..218a5561 100644 --- a/kget/transfer.cpp +++ b/kget/transfer.cpp @@ -259,8 +259,8 @@ void Transfer::setSpeed(unsigned long _speed) // sDebugIn <<endl; speed = _speed; - remainingTimeSec = KIO::calculateRemainingSeconds(totalSize, processedSize, speed); - remainingTime = KIO::convertSeconds(remainingTimeSec); + remainingTimeSec = TDEIO::calculateRemainingSeconds(totalSize, processedSize, speed); + remainingTime = TDEIO::convertSeconds(remainingTimeSec); //sDebugOut <<endl; } @@ -292,7 +292,7 @@ void Transfer::updateAll() if (totalSize != 0) { //logMessage(i18n("Total size is %1 bytes").arg((double)totalSize)); - setText(view->lv_total, KIO::convertSize(totalSize)); + setText(view->lv_total, TDEIO::convertSize(totalSize)); } else { //logMessage(i18n("Total size is unknown")); setText(view->lv_total, i18n("unknown")); @@ -472,7 +472,7 @@ void Transfer::slotRequestRemove() // delete the partly downloaded file, if any file.setFileName( dest.fileName() + ".part" ); // ### get it from the job? - if ( KIO::NetAccess::exists( file, false, view ) ) // don't pollute user with warnings + if ( TDEIO::NetAccess::exists( file, false, view ) ) // don't pollute user with warnings { SafeDelete::deleteFile( file ); // ### messagebox on failure? } @@ -544,7 +544,7 @@ void Transfer::slotRequestDelay() /* -void Transfer::slotCanceled(KIO::Job *) +void Transfer::slotCanceled(TDEIO::Job *) { sDebugIn << endl; @@ -575,7 +575,7 @@ void Transfer::slotFinished() /* -void Transfer::slotRenaming(KIO::Job *, const KURL &, const KURL & to) +void Transfer::slotRenaming(TDEIO::Job *, const KURL &, const KURL & to) { sDebugIn << endl; @@ -623,7 +623,7 @@ void Transfer::slotSpeed(unsigned long bytes_per_second) dlgIndividual->setSpeed(i18n("Stopped")); } else { - TQString tmps = i18n("%1/s").arg(KIO::convertSize(speed)); + TQString tmps = i18n("%1/s").arg(TDEIO::convertSize(speed)); setText(view->lv_speed, tmps); setText(view->lv_remaining, remainingTime); if(dlgIndividual) @@ -635,7 +635,7 @@ void Transfer::slotSpeed(unsigned long bytes_per_second) -void Transfer::slotTotalSize(KIO::filesize_t bytes) +void Transfer::slotTotalSize(TDEIO::filesize_t bytes) { #ifdef _DEBUG sDebugIn<<" totalSize is = "<<totalSize << endl; @@ -645,7 +645,7 @@ void Transfer::slotTotalSize(KIO::filesize_t bytes) totalSize = bytes; if (totalSize != 0) { logMessage(i18n("Total size is %1 bytes").arg((double)totalSize,0,'f',0)); - setText(view->lv_total, KIO::convertSize(totalSize)); + setText(view->lv_total, TDEIO::convertSize(totalSize)); if(dlgIndividual) { dlgIndividual->setTotalSize(totalSize); @@ -672,7 +672,7 @@ void Transfer::slotTotalSize(KIO::filesize_t bytes) -void Transfer::slotProcessedSize(KIO::filesize_t bytes) +void Transfer::slotProcessedSize(TDEIO::filesize_t bytes) { //sDebug<< ">>>>Entering"<<endl; @@ -688,7 +688,7 @@ void Transfer::slotProcessedSize(KIO::filesize_t bytes) percent = 99; // what can we say? totalSize = processedSize; - setText(view->lv_total, KIO::convertSize(totalSize)); + setText(view->lv_total, TDEIO::convertSize(totalSize)); if(dlgIndividual) dlgIndividual->setTotalSize(totalSize); } |