KIO

specialjob.cpp
1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 2000 Stephan Kulow <coolo@kde.org>
4 SPDX-FileCopyrightText: 2000-2013 David Faure <faure@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#include "specialjob.h"
10#include "job_p.h"
11
12using namespace KIO;
13
14class KIO::SpecialJobPrivate : public TransferJobPrivate
15{
16 SpecialJobPrivate(const QUrl &url, int command, const QByteArray &packedArgs, const QByteArray &_staticData)
17 : TransferJobPrivate(url, command, packedArgs, _staticData)
18 {
19 }
20};
21
22SpecialJob::SpecialJob(const QUrl &url, const QByteArray &packedArgs)
23 : TransferJob(*new TransferJobPrivate(url, CMD_SPECIAL, packedArgs, QByteArray()))
24{
25}
26
27SpecialJob::~SpecialJob()
28{
29}
30
32{
34 d->m_packedArgs = data;
35}
36
38{
39 return d_func()->m_packedArgs;
40}
41
42#include "moc_specialjob.cpp"
A class that sends a special command to a KIO worker.
QByteArray arguments() const
Returns the QByteArray data that will be sent (or has been sent) to the worker.
void setArguments(const QByteArray &data)
Sets the QByteArray that is passed to WorkerBase::special() on the worker.
SpecialJob(const QUrl &url, const QByteArray &data=QByteArray())
Creates a KIO::SpecialJob.
The transfer job pumps data into and/or out of a KIO worker.
void data(KIO::Job *job, const QByteArray &data)
Data from the worker has arrived.
A namespace for KIO globals.
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.