KDAV

davcollectionsfetchjob.h
1 /*
2  SPDX-FileCopyrightText: 2010 Tobias Koenig <[email protected]>
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 
16 
17 namespace KDAV {
18 class DavCollectionsFetchJobPrivate;
19 
28 class KDAV_EXPORT DavCollectionsFetchJob : public DavJobBase
29 {
30  Q_OBJECT
31 
32 public:
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 
56 Q_SIGNALS:
63  void collectionDiscovered(KDAV::Protocol protocol, const QString &collectionUrl, const QString &configuredUrl);
64 
65 private:
66  Q_DECLARE_PRIVATE(DavCollectionsFetchJob)
67 };
68 }
69 
70 #endif
A helper class to combine URL and protocol of a DAV URL.
Definition: davurl.h:25
A job that fetches all DAV collection.
The KDAV namespace.
Definition: davcollection.h:22
base class for the jobs used by the resource.
Definition: davjobbase.h:26
Protocol
Describes the DAV protocol dialect.
Definition: enums.h:19
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Oct 28 2020 23:01:59 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.