KIO::DeleteJob Class
A more complex Job to delete files and directories. More...
- Header:
#include <KIO/DeleteJob> - 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
Signals
- void deleting(KIO::Job *job, const QUrl &file)
- void processedDirs(KIO::Job *job, unsigned long dirs)
- void processedFiles(KIO::Job *job, unsigned long files)
- void totalDirs(KJob *job, unsigned long dirs)
- void totalFiles(KJob *job, unsigned long files)
Detailed Description
Don't create the job directly, but use KIO::del() instead.
See also KIO::del()
Member Function Documentation
[signal] void DeleteJob::deleting(KIO::Job *job, const QUrl &file)
Sends the URL of the file that is currently being deleted.
job the job that emitted this signal
file the URL of the file or directory that is being deleted
[signal] void DeleteJob::processedDirs(KIO::Job *job, unsigned long dirs)
Sends the number of processed directories.
job the job that emitted this signal
dirs the number of processed dirs
[signal] void DeleteJob::processedFiles(KIO::Job *job, unsigned long files)
Sends the number of processed files.
job the job that emitted this signal
files the number of processed files
[signal] void DeleteJob::totalDirs(KJob *job, unsigned long dirs)
Emitted when the total number of directories is known.
job the job that emitted this signal
dirs the total number of directories
[signal] void DeleteJob::totalFiles(KJob *job, unsigned long files)
Emitted when the total number of files is known.
job the job that emitted this signal
files the total number of files
QList<QUrl> DeleteJob::urls() const
Returns the list of URLs.
Related Non-Members
KIO::DeleteJob *del(const QList<QUrl> &src, KIO::JobFlags flags = DefaultFlags)
Deletes a list of files or directories.
src the files to delete
flags We support HideProgressInfo here
Returns the job handling the operation
KIO::DeleteJob *del(const QUrl &src, KIO::JobFlags flags = DefaultFlags)
Delete a file or directory.
src file to delete
flags We support HideProgressInfo here
Returns the job handling the operation