KDAV

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
25/**
26 * @class DavItemsFetchJob davitemsfetchjob.h <KDAV/DavItemsFetchJob>
27 *
28 * @short A job that fetches a list of items from a DAV server using a MULTIGET query.
29 */
30class KDAV_EXPORT DavItemsFetchJob : public DavJobBase
31{
33
34public:
35 /**
36 * Creates a new items fetch job.
37 *
38 * @param collectionUrl The DAV collection on which to run the query
39 * @param urls The list of URLs to fetch
40 * @param parent The parent object
41 */
42 DavItemsFetchJob(const DavUrl &collectionUrl, const QStringList &urls, QObject *parent = nullptr);
43
44 /**
45 * Starts the job.
46 */
47 void start() override;
48
49 /**
50 * Returns the list of fetched items
51 */
52 Q_REQUIRED_RESULT DavItem::List items() const;
53
54 /**
55 * Return the item found at @p url
56 */
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
QList< DavItem > List
Defines a list of DAV item objects.
Definition davitem.h:44
DavItem item(const QString &url) const
Return the item found at url.
DavItemsFetchJob(const DavUrl &collectionUrl, const QStringList &urls, QObject *parent=nullptr)
Creates a new items fetch job.
DavItem::List items() const
Returns the list of fetched items.
A helper class to combine URL and protocol of a DAV URL.
Definition davurl.h:27
Q_SCRIPTABLE Q_NOREPLY void start()
The KDAV namespace.
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:16 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.