1/*
2 SPDX-FileCopyrightText: 2010 Tobias Koenig <tokoe@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KDAV_DAVUTILS_P_H
8#define KDAV_DAVUTILS_P_H
9
10#include "enums.h"
11
12#include <QDomElement>
13
14namespace KDAV
15{
16namespace Utils
17{
18/*!
19 * \internal
20 * Returns the first child element of @p parent that has the given @p tagName and is part of the @p namespaceUri.
21 */
22Q_REQUIRED_RESULT QDomElement firstChildElementNS(const QDomElement &parent, const QString &namespaceUri, const QString &tagName);
23
24/*!
25 * \internal
26 * Returns the next sibling element of @p element that has the given @p tagName and is part of the @p namespaceUri.
27 */
28Q_REQUIRED_RESULT QDomElement nextSiblingElementNS(const QDomElement &element, const QString &namespaceUri, const QString &tagName);
29
30/*!
31 * \internal
32 * Extracts privileges from @p element. The <privilege/> tags are expected to be first level children of @p element.
33 */
34Q_REQUIRED_RESULT Privileges extractPrivileges(const QDomElement &element);
35
36/*!
37 * \internal
38 * Parses a single <privilege/> tag and returns the final Privileges.
39 */
40Q_REQUIRED_RESULT Privileges parsePrivilege(const QDomElement &element);
41
42}
43}
44
45#endif
46

source code of kdav/src/common/utils_p.h