KIO::BatchRenameJob Class

class KIO::BatchRenameJob

A KIO job that renames multiple files in one go. More...

Header: #include <KIO/BatchRenameJob>
CMake: find_package(KF6 REQUIRED COMPONENTS KIO)
target_link_libraries(mytarget PRIVATE KF6::KIOCore)
Inherits: KIO::Job

Signals

void fileRenamed(const QUrl &oldUrl, const QUrl &newUrl)

Protected Slots

virtual void slotResult(KJob *job) override
(since 6.16) KIO::BatchRenameJob *batchRenameWithFunction(const QList<QUrl> &srcList, const KIO::renameFunctionType renameFunction, KIO::JobFlags flags = DefaultFlags)

Detailed Description

Member Function Documentation

[signal] void BatchRenameJob::fileRenamed(const QUrl &oldUrl, const QUrl &newUrl)

Signals that a file was renamed.

[override virtual protected slot] void BatchRenameJob::slotResult(KJob *job)

Reimplements: KCompositeJob::slotResult(KJob *job).

Related Non-Members

[since 6.16] KIO::BatchRenameJob *batchRenameWithFunction(const QList<QUrl> &srcList, const KIO::renameFunctionType renameFunction, KIO::JobFlags flags = DefaultFlags)

Renames multiple files at once. The new names are generated by the passed-in function \p renameFunction.

srcList The list of items to rename.

renameFunction A function used to find the new name of each input files

Returns a pointer to the job handling the operation.

This function was introduced in 6.16.