Pages
API Documentation
On this page

KIO::RestoreJob Class

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

List of all members, including inherited members

Public Functions

Detailed Description

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

See also KIO::trash(), KIO::copy()

Member Function Documentation

QList<QUrl> RestoreJob::trashUrls() const

Returns the list of trash URLs to restore.

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

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.