KDAV 5.109.0
davitemmodifyjob.h
1/*
2 SPDX-FileCopyrightText: 2010 Tobias Koenig <tokoe@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KDAV_DAVITEMMODIFYJOB_H
8#define KDAV_DAVITEMMODIFYJOB_H
9
10#include "kdav_export.h"
11
12#include "davitem.h"
13#include "davjobbase.h"
14#include "davurl.h"
15
16namespace KDAV
17{
18class DavItemModifyJobPrivate;
19
25class KDAV_EXPORT DavItemModifyJob : public DavJobBase
26{
27 Q_OBJECT
28
29public:
36 explicit DavItemModifyJob(const DavItem &item, QObject *parent = nullptr);
37
41 void start() override;
42
46 Q_REQUIRED_RESULT DavItem item() const;
47
48 Q_REQUIRED_RESULT QUrl itemUrl() const;
49
53 Q_REQUIRED_RESULT DavItem freshItem() const;
54
58 Q_REQUIRED_RESULT int freshResponseCode() const;
59
60private:
61 Q_DECLARE_PRIVATE(DavItemModifyJob)
62};
63}
64
65#endif
A job that modifies a DAV item on the DAV server.
Definition davitemmodifyjob.h:26
DavItem item() const
Returns the modified item including the updated ETag information.
DavItem freshItem() const
Returns the item that triggered the conflict, if any.
int freshResponseCode() const
Returns the response code we got when fetching the fresh item.
DavItemModifyJob(const DavItem &item, QObject *parent=nullptr)
Creates a new DAV item modify job.
void start() override
Starts the job.
A helper class to store information about DAV resources.
Definition davitem.h:39
base class for the jobs used by the resource.
Definition davjobbase.h:27
The KDAV namespace.
Definition davjobbase.h:17