KDAV 5.109.0
davitemsfetchjob.h
1/*
2 SPDX-FileCopyrightText: 2010 Grégory Oestreicher <greg@kamago.net>
3
4 Based on DavItemsListJob:
5 SPDX-FileCopyrightText: 2010 Tobias Koenig <tokoe@kde.org>
6
7 SPDX-License-Identifier: LGPL-2.0-or-later
8*/
9
10#ifndef KDAV_DAVITEMSFETCHJOB_H
11#define KDAV_DAVITEMSFETCHJOB_H
12
13#include "kdav_export.h"
14
15#include "davitem.h"
16#include "davjobbase.h"
17#include "davurl.h"
18
19#include <QStringList>
20
21namespace KDAV
22{
23class DavItemsFetchJobPrivate;
24
30class KDAV_EXPORT DavItemsFetchJob : public DavJobBase
31{
32 Q_OBJECT
33
34public:
42 DavItemsFetchJob(const DavUrl &collectionUrl, const QStringList &urls, QObject *parent = nullptr);
43
47 void start() override;
48
52 Q_REQUIRED_RESULT DavItem::List items() const;
53
57 Q_REQUIRED_RESULT DavItem item(const QString &url) const;
58
59private:
60 Q_DECLARE_PRIVATE(DavItemsFetchJob)
61};
62}
63
64#endif
A helper class to store information about DAV resources.
Definition davitem.h:39
QVector< DavItem > List
Defines a list of DAV item objects.
Definition davitem.h:44
A job that fetches a list of items from a DAV server using a MULTIGET query.
Definition davitemsfetchjob.h:31
DavItem::List items() const
Returns the list of fetched items.
DavItemsFetchJob(const DavUrl &collectionUrl, const QStringList &urls, QObject *parent=nullptr)
Creates a new items fetch job.
DavItem item(const QString &url) const
Return the item found at url.
void start() override
Starts 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