KDAV2::Utils

KDAV2::Utils Namespace Reference

Functions

QString KPIMKDAV2_EXPORT contactsMimeType (Protocol protocol)
 
QString KPIMKDAV2_EXPORT createUniqueId ()
 
bool extractCollection (const QDomElement &response, DavUrl url, DavCollection &collection)
 
Privileges KPIMKDAV2_EXPORT extractPrivileges (const QDomElement &element)
 
QDomElement KPIMKDAV2_EXPORT firstChildElementNS (const QDomElement &parent, const QString &namespaceUri, const QString &tagName)
 
QDomElement KPIMKDAV2_EXPORT nextSiblingElementNS (const QDomElement &element, const QString &namespaceUri, const QString &tagName)
 
Privileges KPIMKDAV2_EXPORT parsePrivilege (const QDomElement &element)
 
Protocol KPIMKDAV2_EXPORT protocolByName (const QString &name)
 
QLatin1String KPIMKDAV2_EXPORT protocolName (Protocol protocol)
 

Detailed Description

A namespace that contains helper methods for DAV functionality.

Function Documentation

QString KDAV2::Utils::contactsMimeType ( Protocol  protocol)

Returns the mimetype that shall be used for contact DAV resources using protocol.

Definition at line 172 of file utils.cpp.

QString KDAV2::Utils::createUniqueId ( )

Creates a unique identifier that can be used as a file name to upload the dav item.

Definition at line 163 of file utils.cpp.

bool KDAV2::Utils::extractCollection ( const QDomElement response,
DavUrl  url,
DavCollection collection 
)

Extract a DavCollection from the response element of a PROPFIND result.

Returns
false if a collection could not be extracted.

Definition at line 185 of file utils.cpp.

Privileges KDAV2::Utils::extractPrivileges ( const QDomElement element)

Extracts privileges from element.

The <privilege> tags are expected to be first level children of element.

Definition at line 65 of file utils.cpp.

QDomElement KDAV2::Utils::firstChildElementNS ( const QDomElement parent,
const QString namespaceUri,
const QString tagName 
)

Returns the first child element of parent that has the given tagName and is part of the namespaceUri.

Definition at line 37 of file utils.cpp.

QDomElement KDAV2::Utils::nextSiblingElementNS ( const QDomElement element,
const QString namespaceUri,
const QString tagName 
)

Returns the next sibling element of element that has the given tagName and is part of the namespaceUri.

Definition at line 51 of file utils.cpp.

Privileges KDAV2::Utils::parsePrivilege ( const QDomElement element)

Parses a single <privilege> tag and returns the final Privileges.

Definition at line 84 of file utils.cpp.

Protocol KDAV2::Utils::protocolByName ( const QString name)

Returns the protocol matching the given name.

This is the opposite of Utils::protocolName().

Definition at line 146 of file utils.cpp.

QLatin1String KDAV2::Utils::protocolName ( Protocol  protocol)

Returns the untranslated name of the given DAV protocol dialect.

Definition at line 127 of file utils.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Nov 30 2020 23:20:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.