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 | |
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 | |
31 | void SpecialJob::setArguments(const QByteArray &data) |
32 | { |
33 | Q_D(SpecialJob); |
34 | d->m_packedArgs = data; |
35 | } |
36 | |
37 | QByteArray SpecialJob::arguments() const |
38 | { |
39 | return d_func()->m_packedArgs; |
40 | } |
41 | |
42 | #include "moc_specialjob.cpp" |
43 | |