KDAV

davcollectionsmultifetchjob.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_DAVCOLLECTIONSMULTIFETCHJOB_H
8 #define KDAV_DAVCOLLECTIONSMULTIFETCHJOB_H
9 
10 #include "kdav_export.h"
11 
12 #include "davcollection.h"
13 #include "davurl.h"
14 
15 #include <KCompositeJob>
16 
17 #include <memory>
18 
19 namespace KDAV {
20 class DavCollectionsMultiFetchJobPrivate;
21 
33 class KDAV_EXPORT DavCollectionsMultiFetchJob : public KCompositeJob
34 {
35  Q_OBJECT
36 
37 public:
44  explicit DavCollectionsMultiFetchJob(const DavUrl::List &urls, QObject *parent = nullptr);
46 
50  void start() override;
51 
55  Q_REQUIRED_RESULT DavCollection::List collections() const;
56 
57 Q_SIGNALS:
64  void collectionDiscovered(KDAV::Protocol protocol, const QString &collectionUrl, const QString &configuredUrl);
65 
66 private:
67  void slotResult(KJob *) override;
68 
69  const std::unique_ptr<DavCollectionsMultiFetchJobPrivate> d;
70 };
71 }
72 
73 #endif
A job that fetches all DAV collection.
The KDAV namespace.
Definition: davcollection.h:22
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 Tue Sep 22 2020 22:57:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.