KDAV

davitemdeletejob.h
1/*
2 SPDX-FileCopyrightText: 2010 Tobias Koenig <tokoe@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KDAV_DAVITEMDELETEJOB_H
8#define KDAV_DAVITEMDELETEJOB_H
9
10#include "kdav_export.h"
11
12#include "davitem.h"
13#include "davjobbase.h"
14#include "davurl.h"
15
16namespace KDAV
17{
18class DavItemDeleteJobPrivate;
19
20/**
21 * @class DavItemDeleteJob davitemdeletejob.h <KDAV/DavItemDeleteJob>
22 *
23 * @short A job to delete a DAV item on the DAV server.
24 */
25class KDAV_EXPORT DavItemDeleteJob : public DavJobBase
26{
28
29public:
30 /**
31 * Creates a new DAV item delete job.
32 *
33 * @param item The item that shall be deleted.
34 * @param parent The parent object.
35 */
36 explicit DavItemDeleteJob(const DavItem &item, QObject *parent = nullptr);
37
38 /**
39 * Starts the job.
40 */
41 void start() override;
42
43 /**
44 * Returns the item that triggered the conflict, if any.
45 */
46 Q_REQUIRED_RESULT DavItem freshItem() const;
47
48 /**
49 * Returns the response code we got when fetching the fresh item.
50 */
51 Q_REQUIRED_RESULT int freshResponseCode() const;
52
53private:
54 Q_DECLARE_PRIVATE(DavItemDeleteJob)
55};
56}
57
58#endif
DavItemDeleteJob(const DavItem &item, QObject *parent=nullptr)
Creates a new DAV item delete job.
int freshResponseCode() const
Returns the response code we got when fetching the fresh item.
DavItem freshItem() const
Returns the item that triggered the conflict, if any.
A helper class to store information about DAV resources.
Definition davitem.h:39
Q_SCRIPTABLE Q_NOREPLY void start()
The KDAV namespace.
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:16 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.