Attica

deletejob.cpp
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2011 Laszlo Papp <[email protected]>
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), m_request(request)
19 {
20 }
21 
22 QNetworkReply *DeleteJob::executeRequest()
23 {
24  Attica::PlatformDependentV2 *platformDependentV2 = dynamic_cast<Attica::PlatformDependentV2 *>(internals());
25  if (!platformDependentV2) {
26  return nullptr;
27  }
28 
29  return platformDependentV2->deleteResource(m_request);
30 }
31 
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 23:06:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.