KDAV::DavPushSupport Class

class KDAV::DavPushSupport

A helper class to store information about Support of DavPush. More...

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

Public Functions

DavPushSupport()
bool isValid() const
void setTopic(const QString &topic)
void setVapidPublicKey(const QByteArray &vapidPublicKey)
QString topic() const
QByteArray vapidPublicKey() const

Detailed Description

This class is used as a container to transfer DavPush support of DavCollections from the dav server.

See also https://bitfireat.github.io/webdav-push/draft-bitfire-webdav-push-00.html.

Member Function Documentation

DavPushSupport::DavPushSupport()

Creates an empty DAV Push.

bool DavPushSupport::isValid() const

Returns true if this DavPushSupport is valid

void DavPushSupport::setTopic(const QString &topic)

Sets this push's topic

See also topic().

void DavPushSupport::setVapidPublicKey(const QByteArray &vapidPublicKey)

Sets this push's vapid public key vapid must be in base64url (not base64)

See also vapidPublicKey().

QString DavPushSupport::topic() const

Returns this push's topic, empty if no value was found

See also setTopic().

QByteArray DavPushSupport::vapidPublicKey() const

Returns this push's vapid public key, empty if no value was found vapid format is returned in base64url (not base64)

See also setVapidPublicKey().