KDAV

davprincipalhomesetsfetchjob.h
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
base class for the jobs used by the resource.
Definition davjobbase.h:27
A job that fetches home sets for a principal.
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.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:13:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.