Pages
API Documentation
On this page

KIO::SpecialJob Class

A class that sends a special command to a KIO worker. More...

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

List of all members, including inherited members

Public Functions

Detailed Description

This allows you to send a binary blob to a worker and handle its responses. The worker will receive the binary data as an argument to the "special" function (inherited from WorkerBase::special()).

Use this only on KIO workers that belong to your application. Sending special commands to other workers may cause unexpected behaviour.

See also KIO::special

Member Function Documentation

[explicit] SpecialJob::SpecialJob(const QUrl &url, const QByteArray &data = QByteArray())

Creates a KIO::SpecialJob.

url the URL to be passed to the worker

data the data to be sent to the WorkerBase::special() function.

QByteArray SpecialJob::arguments() const

Returns the QByteArray data that will be sent (or has been sent) to the worker.

See also setArguments()

void SpecialJob::setArguments(const QByteArray &data)

Sets the QByteArray that is passed to WorkerBase::special() on the worker.

See also arguments()

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