KDAV2::DavManager

Search for usage in LXR

#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 DavProtocolBasedavProtocol (Protocol protocol)
 
void setIgnoreSslErrors (bool)
 

Static Public Member Functions

static QNetworkAccessManagernetworkAccessManager ()
 
static DavManagerself ()
 

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
dataThe data to PUT.
urlThe target url of the job.
contentTypeThe content-type.

Definition at line 105 of file davmanager.cpp.

◆ createDeleteJob()

DavJob * DavManager::createDeleteJob ( const QUrl & url)

Returns a preconfigured DAV DELETE job.

Parameters
urlThe 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
urlThe 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
urlThe url of the new calendar
documentThe 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
urlThe 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
urlThe url to MKCOL (may be empty).
documentThe 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.
dataThe data to PUT.
urlThe target url of the job.
contentTypeThe content-type.
etagThe 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
urlThe target url of the job.
documentThe query XML document.
depthThe 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
urlThe target url of the job.
documentThe 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
urlThe target url of the job.
documentThe query XML document.
depthThe 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()

QNetworkAccessManager * DavManager::networkAccessManager ( )
static

Provides access to the internally used network access manager.

Definition at line 173 of file davmanager.cpp.

◆ self()

DavManager * DavManager::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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Sep 27 2024 11:52:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.