Libkdav2

davcollectiondeletejob.h
1/*
2 Copyright (c) 2010 Grégory Oestreicher <greg@kamago.net>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17*/
18
19#ifndef KDAV2_DAVCOLLECTIONDELETEJOB_H
20#define KDAV2_DAVCOLLECTIONDELETEJOB_H
21
22#include "kpimkdav2_export.h"
23
24#include "davjobbase.h"
25#include "davurl.h"
26
27#include <KCoreAddons/KJob>
28
29namespace KDAV2
30{
31
32/**
33 * @short A job that deletes a DAV collection.
34 *
35 * This job is used to delete a DAV collection at a certain URL.
36 */
37class KPIMKDAV2_EXPORT DavCollectionDeleteJob : public DavJobBase
38{
39 Q_OBJECT
40
41public:
42 /**
43 * Creates a new DAV collection delete job.
44 *
45 * @param url The dav url of the collection to delete
46 * @param parent The parent object.
47 */
48 explicit DavCollectionDeleteJob(const DavUrl &url, QObject *parent = nullptr);
49
50 /**
51 * Starts the job.
52 */
53 void start() Q_DECL_OVERRIDE;
54
55private Q_SLOTS:
56 void davJobFinished(KJob *);
57
58private:
59 DavUrl mUrl;
60};
61
62}
63
64#endif
65
A job that deletes a DAV collection.
base class for the jobs used by the resource.
Definition davjobbase.h:38
A helper class to combine url and protocol of a DAV url.
Definition davurl.h:36
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:28 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.