1/*
2 SPDX-FileCopyrightText: 2010 Grégory Oestreicher <greg@kamago.net>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KDAV_DAVCOLLECTIONDELETEJOB_H
8#define KDAV_DAVCOLLECTIONDELETEJOB_H
9
10#include "kdav_export.h"
11
12#include "davjobbase.h"
13#include "davurl.h"
14
15namespace KDAV
16{
17class DavCollectionDeleteJobPrivate;
18
19/**
20 * @class DavCollectionDeleteJob davcollectiondeletejob.h <KDAV/DavCollectionDeleteJob>
21 *
22 * @short A job that deletes a DAV collection.
23 *
24 * This job is used to delete a DAV collection at a certain URL.
25 */
26class KDAV_EXPORT DavCollectionDeleteJob : public DavJobBase
27{
28 Q_OBJECT
29
30public:
31 /**
32 * Creates a new DAV collection delete job.
33 *
34 * @param url The DAV URL of the collection to delete
35 * @param parent The parent object.
36 */
37 explicit DavCollectionDeleteJob(const DavUrl &url, QObject *parent = nullptr);
38
39 /**
40 * Starts the job.
41 */
42 void start() override;
43
44private:
45 Q_DECLARE_PRIVATE(DavCollectionDeleteJob)
46};
47}
48
49#endif
50

source code of kdav/src/common/davcollectiondeletejob.h