KIO::RestoreJob Class
class KIO::RestoreJobRestoreJob 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) |
Since: | 5.2 |
Inherits: | KIO::Job |
Public Functions
QList<QUrl> | trashUrls() const |
Related Non-Members
(since 5.2) 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
QList<QUrl> RestoreJob::trashUrls() const
Returns the list of trash URLs to restore.
Related Non-Members
[since 5.2]
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
This function was introduced in 5.2.