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)
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(m_request);
31 }
32 
33 #include "moc_deletejob.cpp"
The Attica namespace,.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 04:08:16 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.