KDAV 5.109.0
davcollectionsfetchjob.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_DAVCOLLECTIONSFETCHJOB_H
8#define KDAV_DAVCOLLECTIONSFETCHJOB_H
9
10#include "kdav_export.h"
11
12#include "davcollection.h"
13#include "davjobbase.h"
14#include "davurl.h"
15
16namespace KDAV
17{
18class DavCollectionsFetchJobPrivate;
19
28class KDAV_EXPORT DavCollectionsFetchJob : public DavJobBase
29{
30 Q_OBJECT
31
32public:
39 explicit DavCollectionsFetchJob(const DavUrl &url, QObject *parent = nullptr);
40
44 void start() override;
45
49 Q_REQUIRED_RESULT DavCollection::List collections() const;
50
54 Q_REQUIRED_RESULT DavUrl davUrl() const;
55
56Q_SIGNALS:
63 void collectionDiscovered(KDAV::Protocol protocol, const QString &collectionUrl, const QString &configuredUrl);
64
65private:
66 Q_DECLARE_PRIVATE(DavCollectionsFetchJob)
67};
68}
69
70#endif
QVector< DavCollection > List
Defines a list of DAV collection objects.
Definition davcollection.h:43
A job that fetches all DAV collection.
Definition davcollectionsfetchjob.h:29
DavUrl davUrl() const
Return the DavUrl used by this job.
DavCollectionsFetchJob(const DavUrl &url, QObject *parent=nullptr)
Creates a new DAV collections fetch job.
DavCollection::List collections() const
Returns the list of fetched DAV collections.
void collectionDiscovered(KDAV::Protocol protocol, const QString &collectionUrl, const QString &configuredUrl)
This signal is emitted every time a new collection has been discovered.
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
Protocol
Describes the DAV protocol dialect.
Definition enums.h:20