Pages
API Documentation
On this page

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

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.

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

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