diff options
Diffstat (limited to 'src/undomanager.cpp')
-rw-r--r-- | src/undomanager.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/undomanager.cpp b/src/undomanager.cpp index 0f4ac43..93dc1b2 100644 --- a/src/undomanager.cpp +++ b/src/undomanager.cpp @@ -149,7 +149,7 @@ void UndoManager::undo() const KURL::List::Iterator end = sourceURLs.end(); const TQString destURL(command.destination().prettyURL(+1)); - KIO::Job* job = 0; + TDEIO::Job* job = 0; switch (command.type()) { case DolphinCommand::Link: case DolphinCommand::Copy: { @@ -159,7 +159,7 @@ void UndoManager::undo() list.append(deleteURL); ++it; } - job = KIO::del(list, false, false); + job = TDEIO::del(list, false, false); break; } @@ -171,23 +171,23 @@ void UndoManager::undo() list.append(newSourceURL); ++it; } - job = KIO::move(list, newDestURL, false); + job = TDEIO::move(list, newDestURL, false); break; } case DolphinCommand::Rename: { assert(sourceURLs.count() == 1); - KIO::NetAccess::move(command.destination(), (*it)); + TDEIO::NetAccess::move(command.destination(), (*it)); break; } case DolphinCommand::Trash: { while (it != end) { - // TODO: use KIO::special for accessing the trash protocol. See + // TODO: use TDEIO::special for accessing the trash protocol. See // also Dolphin::slotJobResult() for further details. const TQString originalFileName((*it).filename().section('-', 1)); KURL newDestURL(destURL + originalFileName); - KIO::NetAccess::move(*it, newDestURL); + TDEIO::NetAccess::move(*it, newDestURL); ++it; m_progressIndicator->execOperation(); @@ -197,7 +197,7 @@ void UndoManager::undo() case DolphinCommand::CreateFolder: case DolphinCommand::CreateFile: { - KIO::NetAccess::del(command.destination(), &Dolphin::mainWin()); + TDEIO::NetAccess::del(command.destination(), &Dolphin::mainWin()); break; } } @@ -205,9 +205,9 @@ void UndoManager::undo() if (job != 0) { // Execute the jobs in a synchronous manner and forward the progress // information to the Dolphin statusbar. - connect(job, TQT_SIGNAL(percent(KIO::Job*, unsigned long)), - this, TQT_SLOT(slotPercent(KIO::Job*, unsigned long))); - KIO::NetAccess::synchronousRun(job, &Dolphin::mainWin()); + connect(job, TQT_SIGNAL(percent(TDEIO::Job*, unsigned long)), + this, TQT_SLOT(slotPercent(TDEIO::Job*, unsigned long))); + TDEIO::NetAccess::synchronousRun(job, &Dolphin::mainWin()); } m_progressIndicator->execOperation(); @@ -256,33 +256,33 @@ void UndoManager::redo() KURL::List::Iterator it = sourceURLs.begin(); const KURL::List::Iterator end = sourceURLs.end(); - KIO::Job* job = 0; + TDEIO::Job* job = 0; switch (command.type()) { case DolphinCommand::Link: { - job = KIO::link(sourceURLs, command.destination(), false); + job = TDEIO::link(sourceURLs, command.destination(), false); break; } case DolphinCommand::Copy: { - job = KIO::copy(sourceURLs, command.destination(), false); + job = TDEIO::copy(sourceURLs, command.destination(), false); break; } case DolphinCommand::Rename: case DolphinCommand::Move: { - job = KIO::move(sourceURLs, command.destination(), false); + job = TDEIO::move(sourceURLs, command.destination(), false); break; } case DolphinCommand::Trash: { const TQString destURL(command.destination().prettyURL()); while (it != end) { - // TODO: use KIO::special for accessing the trash protocol. See + // TODO: use TDEIO::special for accessing the trash protocol. See // also Dolphin::slotJobResult() for further details. const TQString originalFileName((*it).filename().section('-', 1)); KURL originalSourceURL(destURL + "/" + originalFileName); - KIO::Job* moveToTrashJob = KIO::trash(originalSourceURL); - KIO::NetAccess::synchronousRun(moveToTrashJob, &dolphin); + TDEIO::Job* moveToTrashJob = TDEIO::trash(originalSourceURL); + TDEIO::NetAccess::synchronousRun(moveToTrashJob, &dolphin); ++it; m_progressIndicator->execOperation(); @@ -291,7 +291,7 @@ void UndoManager::redo() } case DolphinCommand::CreateFolder: { - KIO::NetAccess::mkdir(command.destination(), &dolphin); + TDEIO::NetAccess::mkdir(command.destination(), &dolphin); break; } @@ -299,7 +299,7 @@ void UndoManager::redo() m_progressIndicator->execOperation(); KURL::List::Iterator it = sourceURLs.begin(); assert(sourceURLs.count() == 1); - KIO::CopyJob* copyJob = KIO::copyAs(*it, command.destination(), false); + TDEIO::CopyJob* copyJob = TDEIO::copyAs(*it, command.destination(), false); copyJob->setDefaultPermissions(true); job = copyJob; break; @@ -309,9 +309,9 @@ void UndoManager::redo() if (job != 0) { // Execute the jobs in a synchronous manner and forward the progress // information to the Dolphin statusbar. - connect(job, TQT_SIGNAL(percent(KIO::Job*, unsigned long)), - this, TQT_SLOT(slotPercent(KIO::Job*, unsigned long))); - KIO::NetAccess::synchronousRun(job, &dolphin); + connect(job, TQT_SIGNAL(percent(TDEIO::Job*, unsigned long)), + this, TQT_SLOT(slotPercent(TDEIO::Job*, unsigned long))); + TDEIO::NetAccess::synchronousRun(job, &dolphin); } ++m_historyIndex; @@ -354,7 +354,7 @@ TQString UndoManager::commandText(const DolphinCommand& command) const return text; } -void UndoManager::slotPercent(KIO::Job* /* job */, unsigned long /* percent */) +void UndoManager::slotPercent(TDEIO::Job* /* job */, unsigned long /* percent */) { // It is not allowed to update the progress indicator in the context // of this slot, hence do an asynchronous triggering. |