KDAV 5.109.0
davcollectionmodifyjob.h
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_DAVCOLLECTIONMODIFYJOB_H
8#define KDAV_DAVCOLLECTIONMODIFYJOB_H
9
10#include "kdav_export.h"
11
12#include "davjobbase.h"
13#include "davurl.h"
14
15namespace KDAV
16{
17class DavCollectionModifyJobPrivate;
18
27class KDAV_EXPORT DavCollectionModifyJob : public DavJobBase
28{
29 Q_OBJECT
30
31public:
38 explicit DavCollectionModifyJob(const DavUrl &url, QObject *parent = nullptr);
39
47 void setProperty(const QString &property, const QString &value, const QString &ns = QString());
48
55 void removeProperty(const QString &property, const QString &ns);
56
60 void start() override;
61
62private:
63 Q_DECLARE_PRIVATE(DavCollectionModifyJob)
64};
65}
66
67#endif
A job that modifies a DAV collection.
Definition davcollectionmodifyjob.h:28
void start() override
Starts the job.
void removeProperty(const QString &property, const QString &ns)
Sets the property that shall be removed by the job.
DavCollectionModifyJob(const DavUrl &url, QObject *parent=nullptr)
Creates a new DAV collection modify job.
void setProperty(const QString &property, const QString &value, const QString &ns=QString())
Sets the property that shall be modified by the job.
base class for the jobs used by the resource.
Definition davjobbase.h:27
A helper class to combine URL and protocol of a DAV URL.
Definition davurl.h:27
The KDAV namespace.
Definition davjobbase.h:17