KIO::SpecialJob Class
class KIO::SpecialJobA 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 |
Public Functions
SpecialJob(const QUrl &url, const QByteArray &data = QByteArray()) | |
QByteArray | arguments() const |
void | setArguments(const QByteArray &data) |
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().