KIO

davjob.h
1 // -*- c++ -*-
2 /*
3  This file is part of the KDE libraries
4  SPDX-FileCopyrightText: 2002 Jan-Pascal van Best <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #ifndef KIO_DAVJOB_H
10 #define KIO_DAVJOB_H
11 
12 #include <QObject>
13 #include <QString>
14 #include <QStringList>
15 #include <QPointer>
16 #include <QDomDocument>
17 
18 #include <sys/types.h>
19 #include <sys/stat.h>
20 
21 #include "kiocore_export.h"
22 #include "transferjob.h"
23 #include "global.h"
24 
25 namespace KIO
26 {
27 
28 class Slave;
29 
30 class DavJobPrivate;
42 class KIOCORE_EXPORT DavJob : public TransferJob
43 {
44  Q_OBJECT
45 public:
50  QDomDocument &response();
51 
52 protected Q_SLOTS:
53  void slotFinished() override;
54  void slotData(const QByteArray &data) override;
55 
56 protected:
57  DavJob(DavJobPrivate &dd, int, const QString &);
58 private:
59  Q_DECLARE_PRIVATE(DavJob)
60 };
61 
73 KIOCORE_EXPORT DavJob *davPropFind(const QUrl &url, const QDomDocument &properties, const QString &depth, JobFlags flags = DefaultFlags);
74 
85 KIOCORE_EXPORT DavJob *davPropPatch(const QUrl &url, const QDomDocument &properties, JobFlags flags = DefaultFlags);
86 
97 KIOCORE_EXPORT DavJob *davSearch(const QUrl &url, const QString &nsURI, const QString &qName, const QString &query, JobFlags flags = DefaultFlags);
98 
109 KIOCORE_EXPORT DavJob *davReport(const QUrl &url, const QString &report, const QString &depth, JobFlags flags = DefaultFlags);
110 
111 }
112 
113 #endif
114 
A namespace for KIO globals.
Definition: authinfo.h:21
Show the progress info GUI, no Resume and no Overwrite.
Definition: job_base.h:270
The transfer job pumps data into and/or out of a Slave.
Definition: davjob.h:42
KIOCORE_EXPORT DavJob * davPropPatch(const QUrl &url, const QDomDocument &properties, JobFlags flags=DefaultFlags)
Creates a new DavJob that issues a PROPPATCH command.
Definition: davjob.cpp:128
KIOCORE_EXPORT DavJob * davSearch(const QUrl &url, const QString &nsURI, const QString &qName, const QString &query, JobFlags flags=DefaultFlags)
Creates a new DavJob that issues a SEARCH command.
Definition: davjob.cpp:134
KIOCORE_EXPORT DavJob * davReport(const QUrl &url, const QString &report, const QString &depth, JobFlags flags=DefaultFlags)
Creates a new DavJob that issues a REPORT command.
Definition: davjob.cpp:146
The transfer job pumps data into and/or out of a Slave.
Definition: transferjob.h:26
KIOCORE_EXPORT DavJob * davPropFind(const QUrl &url, const QDomDocument &properties, const QString &depth, JobFlags flags=DefaultFlags)
Creates a new DavJob that issues a PROPFIND command.
Definition: davjob.cpp:121
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 23:01:38 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.