| 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 | |
| 15 | namespace KDAV |
| 16 | { |
| 17 | class DavCollectionDeleteJobPrivate; |
| 18 | |
| 19 | /*! |
| 20 | * \class KDAV::DavCollectionDeleteJob |
| 21 | * \inheaderfile KDAV/DavCollectionDeleteJob |
| 22 | * \inmodule KDAV |
| 23 | * |
| 24 | * \brief A job that deletes a DAV collection. |
| 25 | * |
| 26 | * This job is used to delete a DAV collection at a certain URL. |
| 27 | */ |
| 28 | class KDAV_EXPORT DavCollectionDeleteJob : public DavJobBase |
| 29 | { |
| 30 | Q_OBJECT |
| 31 | |
| 32 | public: |
| 33 | /*! |
| 34 | * Creates a new DAV collection delete job. |
| 35 | * |
| 36 | * \a url The DAV URL of the collection to delete |
| 37 | * |
| 38 | * \a parent The parent object. |
| 39 | */ |
| 40 | explicit DavCollectionDeleteJob(const DavUrl &url, QObject *parent = nullptr); |
| 41 | |
| 42 | /*! |
| 43 | * Starts the job. |
| 44 | */ |
| 45 | void start() override; |
| 46 | |
| 47 | private: |
| 48 | Q_DECLARE_PRIVATE(DavCollectionDeleteJob) |
| 49 | }; |
| 50 | } |
| 51 | |
| 52 | #endif |
| 53 | |