KDAV 5.109.0
protocolinfo.h
1/*
2 SPDX-FileCopyrightText: 2019 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KDAV_PROTOCOLINFO_H
8#define KDAV_PROTOCOLINFO_H
9
10#include "enums.h"
11#include "kdav_export.h"
12
13namespace KDAV
14{
16namespace ProtocolInfo
17{
26Q_REQUIRED_RESULT KDAV_EXPORT bool useMultiget(KDAV::Protocol protocol);
27
29Q_REQUIRED_RESULT KDAV_EXPORT QString principalHomeSet(KDAV::Protocol protocol);
30
32Q_REQUIRED_RESULT KDAV_EXPORT QString principalHomeSetNS(KDAV::Protocol protocol);
33
37Q_REQUIRED_RESULT KDAV_EXPORT QString protocolName(KDAV::Protocol protocol);
38
43Q_REQUIRED_RESULT KDAV_EXPORT KDAV::Protocol protocolByName(const QString &name);
44
48Q_REQUIRED_RESULT KDAV_EXPORT QString contactsMimeType(KDAV::Protocol protocol);
49}
50
51}
52
53#endif // KDAV_PROTOCOLINFO_H
QString contactsMimeType(KDAV::Protocol protocol)
Returns the mimetype that shall be used for contact DAV resources using protocol.
KDAV::Protocol protocolByName(const QString &name)
Returns the protocol matching the given name.
QString principalHomeSetNS(KDAV::Protocol protocol)
Returns the principal home set namespace of protocol.
QString protocolName(KDAV::Protocol protocol)
Returns the untranslated name of the given DAV protocol dialect.
QString principalHomeSet(KDAV::Protocol protocol)
Returns the principal home set of protocol.
bool useMultiget(KDAV::Protocol protocol)
Returns whether the protocol dialect supports the MULTIGET command.
The KDAV namespace.
Definition davjobbase.h:17
Protocol
Describes the DAV protocol dialect.
Definition enums.h:20