1/*
2 SPDX-FileCopyrightText: 2010 Grégory Oestreicher <greg@kamago.net>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KDAV_DAVPRINCIPALHOMESETSFETCHJOB_H
8#define KDAV_DAVPRINCIPALHOMESETSFETCHJOB_H
9
10#include "kdav_export.h"
11
12#include "davjobbase.h"
13#include "davurl.h"
14
15#include <QStringList>
16
17namespace KDAV
18{
19class DavPrincipalHomeSetsFetchJobPrivate;
20
21/**
22 * @class DavPrincipalHomeSetsFetchJob davprincipalhomesetsfetchjob.h <KDAV/DavPrincipalHomeSetsFetchJob>
23 *
24 * @short A job that fetches home sets for a principal.
25 */
26class KDAV_EXPORT DavPrincipalHomeSetsFetchJob : public DavJobBase
27{
28 Q_OBJECT
29
30public:
31 /**
32 * Creates a new DAV principals home sets fetch job.
33 *
34 * @param url The DAV URL of the DAV principal.
35 * @param parent The parent object.
36 */
37 explicit DavPrincipalHomeSetsFetchJob(const DavUrl &url, QObject *parent = nullptr);
38
39 /**
40 * Starts the job.
41 */
42 void start() override;
43
44 /**
45 * Returns the found home sets.
46 */
47 Q_REQUIRED_RESULT QStringList homeSets() const;
48
49private:
50 Q_DECLARE_PRIVATE(DavPrincipalHomeSetsFetchJob)
51};
52}
53
54#endif
55

source code of kdav/src/common/davprincipalhomesetsfetchjob.h