KIO

specialjob.cpp
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 2000 Stephan Kulow <[email protected]>
4  SPDX-FileCopyrightText: 2000-2013 David Faure <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #include "specialjob.h"
10 #include "job_p.h"
11 
12 using namespace KIO;
13 
14 class 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 
22 SpecialJob::SpecialJob(const QUrl &url, const QByteArray &packedArgs)
23  : TransferJob(*new TransferJobPrivate(url, CMD_SPECIAL, packedArgs, QByteArray()))
24 {
25 }
26 
27 SpecialJob::~SpecialJob()
28 {
29 }
30 
32 {
33  Q_D(SpecialJob);
34  d->m_packedArgs = data;
35 }
36 
38 {
39  return d_func()->m_packedArgs;
40 }
41 
42 #include "moc_specialjob.cpp"
QByteArray arguments() const
Returns the QByteArray data that will be sent (or has been sent) to the worker.
Definition: specialjob.cpp:37
SpecialJob(const QUrl &url, const QByteArray &data=QByteArray())
Creates a KIO::SpecialJob.
Definition: specialjob.cpp:22
void setArguments(const QByteArray &data)
Sets the QByteArray that is passed to WorkerBase::special() on the worker.
Definition: specialjob.cpp:31
A namespace for KIO globals.
void data(KIO::Job *job, const QByteArray &data)
Data from the worker has arrived.
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Dec 6 2023 03:52:42 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.