KIO::RestoreJob Class

class KIO::RestoreJob

RestoreJob is used to restore files from the trash. More...

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

Public Functions

QList<QUrl> trashUrls() const

Protected Slots

virtual void slotResult(KJob *job) override
KIO::RestoreJob *restoreFromTrash(const QList<QUrl> &urls, KIO::JobFlags flags = DefaultFlags)

Detailed Description

Don't create the job directly, but use KIO::restoreFromTrash().

See also KIO::trash() and KIO::copy().

Member Function Documentation

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

QList<QUrl> RestoreJob::trashUrls() const

Returns the list of trash URLs to restore.

Related Non-Members

KIO::RestoreJob *restoreFromTrash(const QList<QUrl> &urls, KIO::JobFlags flags = DefaultFlags)

Restore a set of trashed files or directories.

urls the trash:/ URLs to restore. The trash implementation will know where the files came from and will restore them to their original location.

flags restoreFromTrash() supports HideProgressInfo.

Returns the job handling the operation