KDAV 5.109.0
davitemslistjob.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_DAVITEMSLISTJOB_H
8#define KDAV_DAVITEMSLISTJOB_H
9
10#include "kdav_export.h"
11
12#include "davitem.h"
13#include "davjobbase.h"
14
15#include <memory>
16
17#include <QStringList>
18
19namespace KDAV
20{
21class EtagCache;
22class DavUrl;
23class DavItemsListJobPrivate;
24
30class KDAV_EXPORT DavItemsListJob : public DavJobBase
31{
32 Q_OBJECT
33
34public:
41 DavItemsListJob(const DavUrl &url, const std::shared_ptr<EtagCache> &cache, QObject *parent = nullptr);
42
43 ~DavItemsListJob() override;
44
52 void setContentMimeTypes(const QStringList &types);
53
60 void setTimeRange(const QString &start, const QString &end);
61
65 void start() override;
66
70 Q_REQUIRED_RESULT DavItem::List items() const;
71
75 Q_REQUIRED_RESULT DavItem::List changedItems() const;
76
81 Q_REQUIRED_RESULT QStringList deletedItems() const;
82
83private:
84 Q_DECLARE_PRIVATE(DavItemsListJob)
85};
86}
87
88#endif
QVector< DavItem > List
Defines a list of DAV item objects.
Definition davitem.h:44
A job that lists all DAV items inside a DAV collection.
Definition davitemslistjob.h:31
DavItem::List changedItems() const
Returns the list of items that were changed on the server.
void setTimeRange(const QString &start, const QString &end)
Sets the start and end time to list items for.
QStringList deletedItems() const
Returns the list of items URLs that were not seen in the backend.
void start() override
Starts the job.
DavItemsListJob(const DavUrl &url, const std::shared_ptr< EtagCache > &cache, QObject *parent=nullptr)
Creates a new DAV items list job.
void setContentMimeTypes(const QStringList &types)
Limits the mime types of the items requested.
DavItem::List items() const
Returns the list of items seen including identifier URL and ETag information.
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