KIO::BatchRenameJob Class
class KIO::BatchRenameJobA 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 |
Related Non-Members
(since 6.31) KIO::BatchRenameJob * | batchRenameWithFunction(const KFileItemList &items, const KIO::renameFunctionType renameFunction, KIO::JobFlags flags = DefaultFlags) |
(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.31] KIO::BatchRenameJob *batchRenameWithFunction(const KFileItemList &items, const KIO::renameFunctionType renameFunction, KIO::JobFlags flags = DefaultFlags)
Renames multiple files at once, like batchRenameWithFunction(const QList<QUrl> &, const renameFunctionType, JobFlags), but is given the items themselves, so that what they already know is used: a directory has no file name extension and keeps its whole name, whatever protocol its URL uses. With plain URLs that is only found out for local files.
items The items to rename.
renameFunction A function used to find the new name of each item, given its name without the extension.
Returns a pointer to the job handling the operation.
This function was introduced in 6.31.
[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.