KDAV2::DavManager
#include <davmanager.h>
Public Member Functions | |
~DavManager () | |
DavJob * | createCreateJob (const QByteArray &data, const QUrl &url, const QByteArray &contentType) |
DavJob * | createDeleteJob (const QUrl &url) |
DavJob * | createGetJob (const QUrl &url) |
DavJob * | createMkCalendarJob (const QUrl &url, const QDomDocument &document) |
DavJob * | createMkColJob (const QUrl &url) |
DavJob * | createMkColJob (const QUrl &url, const QDomDocument &document) |
DavJob * | createModifyJob (const QByteArray &data, const QUrl &url, const QByteArray &contentType, const QByteArray &etag) |
DavJob * | createPropFindJob (const QUrl &url, const QDomDocument &document, const QString &depth=QStringLiteral("1")) |
DavJob * | createPropPatchJob (const QUrl &url, const QDomDocument &document) |
DavJob * | createReportJob (const QUrl &url, const QDomDocument &document, const QString &depth=QStringLiteral("1")) |
const DavProtocolBase * | davProtocol (Protocol protocol) |
void | setIgnoreSslErrors (bool) |
Static Public Member Functions | |
static QNetworkAccessManager * | networkAccessManager () |
static DavManager * | self () |
Detailed Description
A factory class for handling DAV jobs.
This class provides factory methods to create preconfigured low-level DAV jobs and has access to the global DAV protocol dialect objects which abstract the access to the various DAV protocol dialects.
Definition at line 49 of file davmanager.h.
Constructor & Destructor Documentation
◆ ~DavManager()
DavManager::~DavManager | ( | ) |
Destroys the DAV manager.
Definition at line 42 of file davmanager.cpp.
Member Function Documentation
◆ createCreateJob()
DavJob * DavManager::createCreateJob | ( | const QByteArray & | data, |
const QUrl & | url, | ||
const QByteArray & | contentType ) |
Returns a preconfigured DAV PUT job with a If-None-Match header.
- Parameters
-
data The data to PUT. url The target url of the job. contentType The content-type.
Definition at line 105 of file davmanager.cpp.
◆ createDeleteJob()
DavJob * DavManager::createDeleteJob | ( | const QUrl & | url | ) |
Returns a preconfigured DAV DELETE job.
- Parameters
-
url The target url of the job.
Definition at line 80 of file davmanager.cpp.
◆ createGetJob()
DavJob * DavManager::createGetJob | ( | const QUrl & | url | ) |
Returns a preconfigured DAV GET job.
- Parameters
-
url The target url of the job.
Definition at line 88 of file davmanager.cpp.
◆ createMkCalendarJob()
DavJob * DavManager::createMkCalendarJob | ( | const QUrl & | url, |
const QDomDocument & | document ) |
Returns a preconfigured DAV MKCALENDAR job.
- Parameters
-
url The url of the new calendar document The query of the MKCALENDAR request
Definition at line 133 of file davmanager.cpp.
◆ createMkColJob() [1/2]
DavJob * DavManager::createMkColJob | ( | const QUrl & | url | ) |
Returns a preconfigured DAV MKCOL job.
- Parameters
-
url The url to MKCOL (may be empty).
Definition at line 119 of file davmanager.cpp.
◆ createMkColJob() [2/2]
DavJob * DavManager::createMkColJob | ( | const QUrl & | url, |
const QDomDocument & | document ) |
Returns a preconfigured extended CardDAV MKCOL job.
- Parameters
-
url The url to MKCOL (may be empty). document The query of the extended MKCOL request
Definition at line 126 of file davmanager.cpp.
◆ createModifyJob()
DavJob * DavManager::createModifyJob | ( | const QByteArray & | data, |
const QUrl & | url, | ||
const QByteArray & | contentType, | ||
const QByteArray & | etag ) |
Returns a preconfigured DAV PUT job with a If-Match header, that matches the.
- Parameters
-
etag. data The data to PUT. url The target url of the job. contentType The content-type. etag The etag of the entity to modify.
Definition at line 112 of file davmanager.cpp.
◆ createPropFindJob()
DavJob * DavManager::createPropFindJob | ( | const QUrl & | url, |
const QDomDocument & | document, | ||
const QString & | depth = QStringLiteral("1") ) |
Returns a preconfigured DAV PROPFIND job.
- Parameters
-
url The target url of the job. document The query XML document. depth The Depth: value to send in the HTTP request
Definition at line 66 of file davmanager.cpp.
◆ createPropPatchJob()
DavJob * DavManager::createPropPatchJob | ( | const QUrl & | url, |
const QDomDocument & | document ) |
Returns a preconfigured DAV PROPPATCH job.
- Parameters
-
url The target url of the job. document The query XML document.
Definition at line 98 of file davmanager.cpp.
◆ createReportJob()
DavJob * DavManager::createReportJob | ( | const QUrl & | url, |
const QDomDocument & | document, | ||
const QString & | depth = QStringLiteral("1") ) |
Returns a preconfigured DAV REPORT job.
- Parameters
-
url The target url of the job. document The query XML document. depth The Depth: value to send in the HTTP request
Definition at line 73 of file davmanager.cpp.
◆ davProtocol()
const DavProtocolBase * DavManager::davProtocol | ( | Protocol | protocol | ) |
Returns the DAV protocol dialect object for the given DAV protocol
.
Definition at line 140 of file davmanager.cpp.
◆ networkAccessManager()
|
static |
Provides access to the internally used network access manager.
Definition at line 173 of file davmanager.cpp.
◆ self()
|
static |
Returns the global instance of the DAV manager.
Definition at line 52 of file davmanager.cpp.
◆ setIgnoreSslErrors()
void DavManager::setIgnoreSslErrors | ( | bool | ignore | ) |
Ignore all ssl errors.
If you want to handle ssl errors yourself via the networkAccessManager, then set to false.
Enabled by default.
Definition at line 178 of file davmanager.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:05 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.