1 | /* |
---|---|
2 | This file is part of KDE. |
3 | |
4 | SPDX-FileCopyrightText: 2011 Laszlo Papp <djszapi@archlinux.us> |
5 | |
6 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
7 | */ |
8 | |
9 | #include "deletejob.h" |
10 | |
11 | #include <QNetworkAccessManager> |
12 | |
13 | #include "platformdependent_v2.h" |
14 | |
15 | using namespace Attica; |
16 | |
17 | DeleteJob::DeleteJob(PlatformDependent *internals, const QNetworkRequest &request) |
18 | : BaseJob(internals) |
19 | , m_request(request) |
20 | { |
21 | } |
22 | |
23 | QNetworkReply *DeleteJob::executeRequest() |
24 | { |
25 | Attica::PlatformDependentV2 *platformDependentV2 = dynamic_cast<Attica::PlatformDependentV2 *>(internals()); |
26 | if (!platformDependentV2) { |
27 | return nullptr; |
28 | } |
29 | |
30 | return platformDependentV2->deleteResource(request: m_request); |
31 | } |
32 | |
33 | #include "moc_deletejob.cpp" |
34 |