Attica

deletejob.cpp
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
15using namespace Attica;
16
17DeleteJob::DeleteJob(PlatformDependent *internals, const QNetworkRequest &request)
18 : BaseJob(internals)
19 , m_request(request)
20{
21}
22
23QNetworkReply *DeleteJob::executeRequest()
24{
25 Attica::PlatformDependentV2 *platformDependentV2 = dynamic_cast<Attica::PlatformDependentV2 *>(internals());
26 if (!platformDependentV2) {
27 return nullptr;
28 }
29
30 return platformDependentV2->deleteResource(m_request);
31}
32
33#include "moc_deletejob.cpp"
The baseclass for all job classes.
The Attica namespace,.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:36 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.