File indexing completed on 2024-04-21 03:53:52

0001 /*
0002     SPDX-FileCopyrightText: 2010 Grégory Oestreicher <greg@kamago.net>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KDAV_DAVCOLLECTIONDELETEJOB_H
0008 #define KDAV_DAVCOLLECTIONDELETEJOB_H
0009 
0010 #include "kdav_export.h"
0011 
0012 #include "davjobbase.h"
0013 #include "davurl.h"
0014 
0015 namespace KDAV
0016 {
0017 class DavCollectionDeleteJobPrivate;
0018 
0019 /**
0020  * @class DavCollectionDeleteJob davcollectiondeletejob.h <KDAV/DavCollectionDeleteJob>
0021  *
0022  * @short A job that deletes a DAV collection.
0023  *
0024  * This job is used to delete a DAV collection at a certain URL.
0025  */
0026 class KDAV_EXPORT DavCollectionDeleteJob : public DavJobBase
0027 {
0028     Q_OBJECT
0029 
0030 public:
0031     /**
0032      * Creates a new DAV collection delete job.
0033      *
0034      * @param url The DAV URL of the collection to delete
0035      * @param parent The parent object.
0036      */
0037     explicit DavCollectionDeleteJob(const DavUrl &url, QObject *parent = nullptr);
0038 
0039     /**
0040      * Starts the job.
0041      */
0042     void start() override;
0043 
0044 private:
0045     Q_DECLARE_PRIVATE(DavCollectionDeleteJob)
0046 };
0047 }
0048 
0049 #endif