KDAV::DavUrl Class

class KDAV::DavUrl

A helper class to combine URL and protocol of a DAV URL. More...

Header: #include <KDAV/DavUrl>
CMake: find_package(KF6 REQUIRED COMPONENTS DAV)
target_link_libraries(mytarget PRIVATE KF6::DAV)

Public Types

Public Functions

DavUrl()
DavUrl(const QUrl &url, KDAV::Protocol protocol)
KDAV::Protocol protocol() const
void setProtocol(KDAV::Protocol protocol)
void setUrl(const QUrl &url)
QString toDisplayString() const
QUrl url() const

Detailed Description

Member Type Documentation

DavUrl::List

Defines a list of DAV URL objects.

Member Function Documentation

DavUrl::DavUrl()

Creates an empty DAV URL.

DavUrl::DavUrl(const QUrl &url, KDAV::Protocol protocol)

Creates a new DAV URL.

url The URL that identifies the DAV object.

protocol The DAV protocol dialect that is used to retrieve the DAV object.

KDAV::Protocol DavUrl::protocol() const

Returns the DAV protocol dialect that is used to retrieve the DAV object.

See also setProtocol().

void DavUrl::setProtocol(KDAV::Protocol protocol)

Sets the DAV protocol dialect that is used to retrieve the DAV object.

See also protocol().

void DavUrl::setUrl(const QUrl &url)

Sets the url that identifies the DAV object.

See also url().

QString DavUrl::toDisplayString() const

Returns the URL in a user-friendly way without login information.

QUrl DavUrl::url() const

Returns the URL that identifies the DAV object.

See also setUrl().